|
@@ -67,7 +67,27 @@ services:
|
|
# Middleware to redirect www, and redirect HTTP to HTTPS
|
|
# Middleware to redirect www, and redirect HTTP to HTTPS
|
|
# to disable www redirection remove the section: ${STACK_NAME?Variable not set}-www-redirect,
|
|
# to disable www redirection remove the section: ${STACK_NAME?Variable not set}-www-redirect,
|
|
- traefik.http.routers.${STACK_NAME?Variable not set}-proxy-http.middlewares=${STACK_NAME?Variable not set}-www-redirect,${STACK_NAME?Variable not set}-https-redirect
|
|
- traefik.http.routers.${STACK_NAME?Variable not set}-proxy-http.middlewares=${STACK_NAME?Variable not set}-www-redirect,${STACK_NAME?Variable not set}-https-redirect
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ backend:
|
|
|
|
+ image: '${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}'
|
|
|
|
+ env_file:
|
|
|
|
+ - .env
|
|
|
|
+ environment:
|
|
|
|
+ - SERVER_NAME=${DOMAIN?Variable not set}
|
|
|
|
+ - SERVER_HOST=https://${DOMAIN?Variable not set}
|
|
|
|
+ # Allow explicit env var override for tests
|
|
|
|
+ - SMTP_HOST=${SMTP_HOST}
|
|
|
|
+ build:
|
|
|
|
+ context: ./backend
|
|
|
|
+ dockerfile: backend.dockerfile
|
|
|
|
+ args:
|
|
|
|
+ INSTALL_DEV: ${INSTALL_DEV-false}
|
|
|
|
+ deploy:
|
|
|
|
+ labels:
|
|
|
|
+ - traefik.enable=true
|
|
|
|
+ - traefik.constraint-label-stack=${TRAEFIK_TAG?Variable not set}
|
|
|
|
+ - traefik.http.routers.${STACK_NAME?Variable not set}-backend-http.rule=PathPrefix(`/api`) || PathPrefix(`/docs`) || PathPrefix(`/redoc`)
|
|
|
|
+ - traefik.http.services.${STACK_NAME?Variable not set}-backend.loadbalancer.server.port=80
|
|
|
|
|
|
frontend:
|
|
frontend:
|
|
image: '${DOCKER_IMAGE_FRONTEND?Variable not set}:${TAG-latest}'
|
|
image: '${DOCKER_IMAGE_FRONTEND?Variable not set}:${TAG-latest}'
|