chore: healthcheck
This commit is contained in:
@@ -6,14 +6,16 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
target: production
|
||||
args:
|
||||
VITE_BACKEND_URL: ${VITE_BACKEND_URL}
|
||||
env_file: .env
|
||||
ports:
|
||||
- "5173:80" # Only expose Nginx
|
||||
- "5173:80" # Frontend exposed on port 5173
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
||||
test: ["CMD", "curl", "-f", "http://app:80/"] # Changed to port 80
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -55,6 +57,15 @@ services:
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf # Your Nginx config
|
||||
ports:
|
||||
- "80:80" # Host port 80 mapped to Nginx port 80
|
||||
depends_on:
|
||||
- app
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
minio_data:
|
||||
|
||||
Reference in New Issue
Block a user