Files
parcer/docker-compose.yml

73 lines
1.5 KiB
YAML
Raw Normal View History

2024-10-24 18:57:07 +05:30
version: '3.8'
2024-10-29 23:42:58 +05:30
2024-10-24 18:57:07 +05:30
services:
2024-10-29 23:42:58 +05:30
app:
2024-10-24 18:57:07 +05:30
build:
context: .
2024-10-29 23:42:58 +05:30
dockerfile: Dockerfile
2024-10-30 05:47:58 +05:30
target: production
2024-11-01 07:41:38 +05:30
args:
VITE_BACKEND_URL: ${VITE_BACKEND_URL}
2024-10-29 23:42:58 +05:30
env_file: .env
2024-10-24 18:57:07 +05:30
ports:
2024-11-01 07:41:38 +05:30
- "5173:80" # Frontend exposed on port 5173
2024-10-24 18:57:07 +05:30
depends_on:
2024-10-31 15:25:23 +05:30
db:
condition: service_healthy
healthcheck:
2024-11-01 07:41:38 +05:30
test: ["CMD", "curl", "-f", "http://app:80/"] # Changed to port 80
2024-10-31 15:25:23 +05:30
interval: 10s
timeout: 5s
retries: 5
2024-10-24 18:57:07 +05:30
2024-10-29 23:42:58 +05:30
db:
2024-10-30 12:04:38 +05:30
image: postgres:13
2024-10-24 18:57:07 +05:30
environment:
2024-10-29 23:42:58 +05:30
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- "5432:5432"
2024-10-24 18:57:07 +05:30
volumes:
- postgres_data:/var/lib/postgresql/data
2024-10-30 21:38:00 +05:30
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
2024-10-24 18:57:07 +05:30
minio:
image: minio/minio
2024-10-29 23:42:58 +05:30
environment:
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
2024-10-24 18:57:07 +05:30
command: server /data
ports:
- "9000:9000"
volumes:
- minio_data:/data
2024-10-30 05:47:58 +05:30
redis:
image: redis:6
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
ports:
- "6379:6379"
volumes:
- redis_data:/data
2024-11-01 07:41:38 +05:30
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
2024-10-24 18:57:07 +05:30
volumes:
postgres_data:
2024-10-30 05:47:58 +05:30
minio_data:
redis_data: