From 91490395c2f90dd230261c01cc055982b09cb976 Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Mon, 7 Oct 2024 20:47:26 +0800 Subject: [PATCH] yml --- docker-compose.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 646bfbc..2f7029c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -36,13 +36,16 @@ services: - traefik.http.services.${STACK_NAME?Variable not set}-adminer.loadbalancer.server.port=8080 backend: - image: '${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}' + image: "${DOCKER_IMAGE_BACKEND?Variable not set}:${TAG-latest}" + restart: always networks: - traefik-public - default depends_on: - db + volumes: + - ./backend/static:/static env_file: - .env environment: @@ -93,7 +96,7 @@ services: - traefik.http.routers.${STACK_NAME?Variable not set}-backend-https.middlewares=${STACK_NAME?Variable not set}-www-redirect frontend: - image: '${DOCKER_IMAGE_FRONTEND?Variable not set}:${TAG-latest}' + image: "${DOCKER_IMAGE_FRONTEND?Variable not set}:${TAG-latest}" restart: always networks: - traefik-public