Skip to content

Commit 2a58dd4

Browse files
committed
switch to compose v2
1 parent a94678d commit 2a58dd4

File tree

8 files changed

+20
-18
lines changed

8 files changed

+20
-18
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,11 @@ Image: anonaddy/anonaddy:latest
227227
### Docker Compose
228228

229229
Docker compose is the recommended way to run this image. You can use the following
230-
[docker compose template](examples/compose/docker-compose.yml), then run the container:
230+
[docker compose template](examples/compose/compose.yml), then run the container:
231231

232232
```console
233-
docker-compose up -d
234-
docker-compose logs -f
233+
docker compose up -d
234+
docker compose logs -f
235235
```
236236

237237
## Upgrade
@@ -240,8 +240,8 @@ You can upgrade AnonAddy automatically through the UI, it works well. But I
240240
recommend to recreate the container whenever I push an update:
241241

242242
```console
243-
docker-compose pull
244-
docker-compose up -d
243+
docker compose pull
244+
docker compose up -d
245245
```
246246

247247
## Notes
@@ -252,25 +252,25 @@ If you want to use the artisan command to perform common server operations like
252252
manage users, passwords and more, type:
253253

254254
```console
255-
docker-compose exec anonaddy anonaddy <command>
255+
docker compose exec anonaddy anonaddy <command>
256256
```
257257

258258
For example to list all available commands:
259259

260260
```console
261-
docker-compose exec anonaddy anonaddy list
261+
docker compose exec anonaddy anonaddy list
262262
```
263263

264264
### Create user
265265

266266
```console
267-
docker-compose exec anonaddy anonaddy anonaddy:create-user "username" "webmaster@example.com"
267+
docker compose exec anonaddy anonaddy anonaddy:create-user "username" "webmaster@example.com"
268268
```
269269

270270
### Generate DKIM private/public keypair
271271

272272
```console
273-
docker-compose run --entrypoint '' anonaddy gen-dkim
273+
docker compose run --entrypoint '' anonaddy gen-dkim
274274
```
275275

276276
```text
@@ -291,7 +291,7 @@ If you don't have an existing GPG key, you can generate a new GPG key with the
291291
following command:
292292

293293
```console
294-
docker-compose exec --user anonaddy anonaddy gpg --full-gen-key
294+
docker compose exec --user anonaddy anonaddy gpg --full-gen-key
295295
```
296296

297297
Keys will be stored in `/data/.gnupg` folder.

examples/compose/docker-compose.yml renamed to examples/compose/compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "3.5"
1+
name: annoaddy
22

33
services:
44
db:

examples/nginx/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ sudo openssl dhparam -out dhparam.pem 4096
1515

1616
## Configure mounts for nginx
1717

18-
The `docker-compose.yml` may need some adjusting to properly mount your
19-
specific let's encrypt and dhparam certs.
18+
The `compose.yml` may need some adjusting to properly mount your specific
19+
let's encrypt and dhparam certs.
2020

2121
## Rspamd web ui
2222

examples/nginx/docker-compose.yml renamed to examples/nginx/compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "3.5"
1+
name: annoaddy
22

33
services:
44
db:

examples/rspamd/docker-compose.yml renamed to examples/rspamd/compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "3.5"
1+
name: annoaddy
22

33
services:
44
db:

examples/traefik/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
```bash
44
touch acme.json
55
chmod 600 acme.json
6-
docker-compose up -d
7-
docker-compose logs -f
6+
docker compose up -d
7+
docker compose logs -f
88
```

examples/traefik/docker-compose.yml renamed to examples/traefik/compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "3.5"
1+
name: annoaddy
22

33
services:
44
traefik:

test/compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: annoaddy
2+
13
services:
24
db:
35
image: mariadb:10.5

0 commit comments

Comments
 (0)