This commit is contained in:
2026-03-12 17:18:23 +08:00
parent a26cda2f04
commit 8b2a506177

View File

@@ -19,7 +19,7 @@ services:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
- ../scripts/init_database:/docker-entrypoint-initdb.d - ../scripts/init_database:/docker-entrypoint-initdb.d
ports: ports:
- "${POSTGRES_PORT:-5432}:5432" - "${POSTGRES_PORT:-5433}:5432"
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"] test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s interval: 10s
@@ -66,7 +66,7 @@ services:
context: ../frontend context: ../frontend
dockerfile: ../docker/Dockerfile.frontend dockerfile: ../docker/Dockerfile.frontend
volumes: volumes:
- ../frontend/dist:/app/dist - frontend_dist:/app/dist
networks: networks:
- app-network - app-network
@@ -80,7 +80,7 @@ services:
- "${FRONTEND_PORT:-8080}:80" - "${FRONTEND_PORT:-8080}:80"
volumes: volumes:
- ../nginx.conf:/etc/nginx/nginx.conf:ro - ../nginx.conf:/etc/nginx/nginx.conf:ro
- ../frontend/dist:/usr/share/nginx/html:ro - frontend_dist:/usr/share/nginx/html:ro
depends_on: depends_on:
frontend: frontend:
condition: service_completed_successfully condition: service_completed_successfully
@@ -90,6 +90,7 @@ services:
volumes: volumes:
postgres_data: postgres_data:
frontend_dist:
networks: networks:
app-network: app-network: