This commit is contained in:
Philip Cheung 2024-10-07 20:47:26 +08:00
parent dadc2cec38
commit 91490395c2
1 changed files with 5 additions and 2 deletions

View File

@ -36,13 +36,16 @@ services:
- traefik.http.services.${STACK_NAME?Variable not set}-adminer.loadbalancer.server.port=8080 - traefik.http.services.${STACK_NAME?Variable not set}-adminer.loadbalancer.server.port=8080
backend: backend:
image: '${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}' image: "${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}"
restart: always restart: always
networks: networks:
- traefik-public - traefik-public
- default - default
depends_on: depends_on:
- db - db
volumes:
- ./backend/static:/static
env_file: env_file:
- .env - .env
environment: environment:
@ -93,7 +96,7 @@ services:
- traefik.http.routers.${STACK_NAME?Variable not set}-backend-https.middlewares=${STACK_NAME?Variable not set}-www-redirect - traefik.http.routers.${STACK_NAME?Variable not set}-backend-https.middlewares=${STACK_NAME?Variable not set}-www-redirect
frontend: frontend:
image: '${DOCKER_IMAGE_FRONTEND?Variable not set}:${TAG-latest}' image: "${DOCKER_IMAGE_FRONTEND?Variable not set}:${TAG-latest}"
restart: always restart: always
networks: networks:
- traefik-public - traefik-public