2026-09-10 01:58:29 +03:30
|
|
|
services:
|
|
|
|
|
postgres:
|
|
|
|
|
image: postgres:15-alpine
|
|
|
|
|
container_name: lucky_wheel_postgres
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
POSTGRES_DB: lucky_wheel
|
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
|
POSTGRES_PASSWORD: postgrespassword
|
|
|
|
|
ports:
|
|
|
|
|
- "5432:5432"
|
|
|
|
|
volumes:
|
|
|
|
|
- pg_data:/var/lib/postgresql/data
|
|
|
|
|
healthcheck:
|
2026-09-10 02:26:23 +03:30
|
|
|
test: [ "CMD-SHELL", "pg_isready -U postgres -d lucky_wheel" ]
|
2026-09-10 01:58:29 +03:30
|
|
|
interval: 5s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
|
|
|
|
|
redis:
|
|
|
|
|
image: redis:7-alpine
|
|
|
|
|
container_name: lucky_wheel_redis
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
|
|
|
|
- "6380:6379"
|
|
|
|
|
volumes:
|
|
|
|
|
- redis_data:/data
|
|
|
|
|
healthcheck:
|
2026-09-10 02:26:23 +03:30
|
|
|
test: [ "CMD", "redis-cli", "ping" ]
|
2026-09-10 01:58:29 +03:30
|
|
|
interval: 5s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
2026-09-10 20:11:27 +03:30
|
|
|
|
|
|
|
|
api:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: apps/api/Dockerfile
|
|
|
|
|
container_name: lucky_wheel_api
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
2026-09-13 02:02:46 +03:30
|
|
|
- "3001:3000"
|
2026-09-10 20:11:27 +03:30
|
|
|
environment:
|
|
|
|
|
- DATABASE_URL=postgresql://postgres:postgrespassword@postgres:5432/lucky_wheel?schema=public
|
|
|
|
|
- REDIS_HOST=redis
|
|
|
|
|
- REDIS_PORT=6379
|
|
|
|
|
- NODE_ENV=production
|
|
|
|
|
depends_on:
|
|
|
|
|
postgres:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
redis:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
|
|
admin:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: apps/admin/Dockerfile
|
2026-09-13 02:02:46 +03:30
|
|
|
args:
|
|
|
|
|
VITE_CLIENT_PUBLIC_URL: ${VITE_CLIENT_PUBLIC_URL:-}
|
2026-09-10 20:11:27 +03:30
|
|
|
container_name: lucky_wheel_admin
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
2026-09-13 02:02:46 +03:30
|
|
|
- "5173:80"
|
2026-09-10 20:11:27 +03:30
|
|
|
- "8080:80"
|
|
|
|
|
depends_on:
|
|
|
|
|
- api
|
|
|
|
|
|
|
|
|
|
client:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: apps/client/Dockerfile
|
|
|
|
|
container_name: lucky_wheel_client
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
2026-09-13 02:02:46 +03:30
|
|
|
- "5174:80"
|
2026-09-10 20:11:27 +03:30
|
|
|
- "80:80"
|
|
|
|
|
depends_on:
|
|
|
|
|
- api
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
pg_data:
|
|
|
|
|
redis_data:
|