#1402 Environment variables for custom image (#1403)

* chore: enhance compose.yaml with variables for customize

* chore: use default blank values for db and redis variables in compose.yaml

* chore: Use env var for HTTP(S) publish ports in overrides

* docs: explain use of environment variables for image customization

* chore: use ERPNEXT_VERSION as default

* docs: fixed spelling errors
This commit is contained in:
Yeifer Alexander Muñoz Torres
2024-06-07 13:51:17 -05:00
committed by GitHub
parent 9da4d22dd7
commit fa543662ed
8 changed files with 38 additions and 17 deletions

View File

@@ -21,8 +21,8 @@ services:
- --certificatesResolvers.main-resolver.acme.email=${LETSENCRYPT_EMAIL:?No Let's Encrypt email set}
- --certificatesResolvers.main-resolver.acme.storage=/letsencrypt/acme.json
ports:
- 80:80
- 443:443
- ${HTTP_PUBLISH_PORT:-80}:80
- ${HTTPS_PUBLISH_PORT:-443}:443
volumes:
- cert-data:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock:ro

View File

@@ -1,4 +1,4 @@
services:
frontend:
ports:
- 8080:8080
- ${HTTP_PUBLISH_PORT:-8080}:8080

View File

@@ -13,7 +13,7 @@ services:
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
ports:
- 80:80
- ${HTTP_PUBLISH_PORT:-80}:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
userns_mode: host

View File

@@ -40,7 +40,7 @@ services:
# Enable the Dashboard and API
- --api
ports:
- 443:443
- ${HTTPS_PUBLISH_PORT:-443}:443
volumes:
- cert-data:/certificates

View File

@@ -35,7 +35,7 @@ services:
# Enable the Dashboard and API
- --api
ports:
- 80:80
- ${HTTP_PUBLISH_PORT:-80}:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks: