Skip to content

Commit 07428f2

Browse files
committed
feat: update docker compose to newest config syntax
1 parent bd19c0b commit 07428f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker-compose.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
version: '2'
2-
31
# most of the configuration based on instruction from:
42
# https://github.com/nginx-proxy/acme-companion/blob/main/docs/Docker-Compose.md
53
# and
64
# https://hub.docker.com/r/nginxproxy/acme-companion#:~:text=and%20443.-,Basic%20usage,-(with%20the%20nginx
5+
# just rewritten to docker compose config format version 3
76

87
services:
98
nginx-proxy:
@@ -18,6 +17,7 @@ services:
1817
- "443:443"
1918
volumes:
2019
- html:/usr/share/nginx/html
20+
- vhost:/etc/nginx/vhost.d
2121
- certs:/etc/nginx/certs:ro
2222
- /var/run/docker.sock:/tmp/docker.sock:ro
2323
restart: unless-stopped
@@ -50,6 +50,7 @@ services:
5050
volumes:
5151
html:
5252
certs:
53+
vhost:
5354
acme:
5455

5556
networks:

0 commit comments

Comments
 (0)