mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-23 00:05:09 +00:00
chore: Use env var for HTTP(S) publish ports in overrides
This commit is contained in:
parent
1215c3767b
commit
4e25a032a8
5 changed files with 6 additions and 6 deletions
|
|
@ -21,8 +21,8 @@ services:
|
||||||
- --certificatesResolvers.main-resolver.acme.email=${LETSENCRYPT_EMAIL:?No Let's Encrypt email set}
|
- --certificatesResolvers.main-resolver.acme.email=${LETSENCRYPT_EMAIL:?No Let's Encrypt email set}
|
||||||
- --certificatesResolvers.main-resolver.acme.storage=/letsencrypt/acme.json
|
- --certificatesResolvers.main-resolver.acme.storage=/letsencrypt/acme.json
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- ${HTTP_PUBLISH_PORT:-80}:80
|
||||||
- 443:443
|
- ${HTTPS_PUBLISH_PORT:-443}:443
|
||||||
volumes:
|
volumes:
|
||||||
- cert-data:/letsencrypt
|
- cert-data:/letsencrypt
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
services:
|
services:
|
||||||
frontend:
|
frontend:
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- ${HTTP_PUBLISH_PORT:-8080}:8080
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ services:
|
||||||
- --providers.docker.exposedbydefault=false
|
- --providers.docker.exposedbydefault=false
|
||||||
- --entrypoints.web.address=:80
|
- --entrypoints.web.address=:80
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- ${HTTP_PUBLISH_PORT:-80}:80
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
userns_mode: host
|
userns_mode: host
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ services:
|
||||||
# Enable the Dashboard and API
|
# Enable the Dashboard and API
|
||||||
- --api
|
- --api
|
||||||
ports:
|
ports:
|
||||||
- 443:443
|
- ${HTTPS_PUBLISH_PORT:-443}:443
|
||||||
volumes:
|
volumes:
|
||||||
- cert-data:/certificates
|
- cert-data:/certificates
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ services:
|
||||||
# Enable the Dashboard and API
|
# Enable the Dashboard and API
|
||||||
- --api
|
- --api
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- ${HTTP_PUBLISH_PORT:-80}:80
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue