chore: dockerize monorepo with multi-stage builds and update frontend

This commit is contained in:
s.esmaeili
2026-09-10 20:11:27 +03:30
parent d6f9d63e14
commit efb0051ab9
28 changed files with 4179 additions and 1069 deletions
+45
View File
@@ -30,3 +30,48 @@ services:
interval: 5s
timeout: 5s
retries: 5
api:
build:
context: .
dockerfile: apps/api/Dockerfile
container_name: lucky_wheel_api
restart: unless-stopped
ports:
- "3000:3000"
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
container_name: lucky_wheel_admin
restart: unless-stopped
ports:
- "8080:80"
depends_on:
- api
client:
build:
context: .
dockerfile: apps/client/Dockerfile
container_name: lucky_wheel_client
restart: unless-stopped
ports:
- "80:80"
depends_on:
- api
volumes:
pg_data:
redis_data: