fix: docker container are starting

This commit is contained in:
2026-07-08 13:37:21 +02:00
parent c6bba8a40c
commit 3a5c16031a
18 changed files with 176 additions and 7710 deletions
+7 -5
View File
@@ -11,7 +11,7 @@ services:
- ./.docker/volumes/stockhome_mysql:/var/lib/mysql
- ./mysql-timezone.cnf:/etc/mysql/conf.d/timezone.cnf:ro
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 5s
timeout: 3s
retries: 20
@@ -19,8 +19,8 @@ services:
backend:
container_name: stockhome-backend
build:
context: ./backend
dockerfile: Dockerfile
context: .
dockerfile: backend/Dockerfile
ports:
- "8004:8004"
environment:
@@ -39,9 +39,11 @@ services:
container_name: stockhome-frontend
ports:
- "80:80"
build: ./frontend
build:
context: .
dockerfile: frontend/Dockerfile
environment:
BACKEND_HOST: ${BACKEND_HOST}
depends_on:
- backend
restart: unless-stopped
restart: unless-stopped