Skip to content

Commit b12ff7e

Browse files
Remove ports from caddy docker-compose
The caddy container specifies "host" networking so the ports aren't necessary. Older versions of docker/docker-compose may have just ignored the the ports when using "host" networking, but I was unable to get the containers to start using docker-compose 1.29.2 / docker 20.10.24+dfsg1, build 297e128 as it threw an error around having specified ports AND "host" networking.
1 parent c4e1019 commit b12ff7e

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

docker-compose.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ services:
1212

1313
caddy:
1414
image: lucaslorentz/caddy-docker-proxy:ci-alpine
15-
ports:
16-
- 80:80
17-
- 443:443
1815
environment:
1916
- CADDY_INGRESS_NETWORKS=caddy
2017
volumes:

0 commit comments

Comments
 (0)