Tweaked template vars and image resolution
This commit is contained in:
parent
edcff9ad23
commit
95a56d4d7e
2 changed files with 2 additions and 3 deletions
|
|
@ -44,7 +44,6 @@ MCP_SERVER_PORT=8001
|
||||||
FYP_DJANGO_IMAGE=dynavera-django:prod
|
FYP_DJANGO_IMAGE=dynavera-django:prod
|
||||||
FYP_DJANGO_REPLICAS=1
|
FYP_DJANGO_REPLICAS=1
|
||||||
FYP_CELERY_IMAGE=dynavera-celery:prod
|
FYP_CELERY_IMAGE=dynavera-celery:prod
|
||||||
DJANGO_DOMAIN=yourdomain.com
|
|
||||||
DJANGO_ENTRYPOINT=websecure
|
DJANGO_ENTRYPOINT=websecure
|
||||||
CERTRESOLVER=myresolver
|
CERTRESOLVER=myresolver
|
||||||
DJANGO_PORT=8000
|
DJANGO_PORT=8000
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@ services:
|
||||||
image: {FYP_DJANGO_IMAGE}
|
image: {FYP_DJANGO_IMAGE}
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: {FYP_DJANGO_REPLICAS}
|
replicas: "${FYP_DJANGO_REPLICAS}"
|
||||||
env_file:
|
env_file:
|
||||||
- ../../.env
|
- ../../.env
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.fyp-web.rule=Host(`${DJANGO_DOMAIN}`)"
|
- "traefik.http.routers.fyp-web.rule=Host(`${DJANGO_DOMAIN_NAME}`)"
|
||||||
- "traefik.http.routers.fyp-web.entrypoints=${DJANGO_ENTRYPOINT}"
|
- "traefik.http.routers.fyp-web.entrypoints=${DJANGO_ENTRYPOINT}"
|
||||||
- "traefik.http.routers.fyp-web.tls.certresolver=${CERTRESOLVER}"
|
- "traefik.http.routers.fyp-web.tls.certresolver=${CERTRESOLVER}"
|
||||||
- "traefik.http.services.fyp-web.loadbalancer.server.port=${DJANGO_PORT}"
|
- "traefik.http.services.fyp-web.loadbalancer.server.port=${DJANGO_PORT}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue