Spaces:
Running
Running
File size: 1,088 Bytes
b2806e8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
version: '3.8'
services:
redis:
image: redis:7-alpine
container_name: wagerkit-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 3
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: wagerkit-backend
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- PORT=3001
- REDIS_HOST=redis
- REDIS_PORT=6379
- DOME_API_KEY=${DOME_API_KEY:-your_api_key_here}
depends_on:
redis:
condition: service_healthy
command: node dist/main.js
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: wagerkit-frontend
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_API_URL=http://localhost:3001/api
depends_on:
- backend
restart: unless-stopped
volumes:
redis-data:
|