-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 1.29 KB
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
# Ports are configurable via .env to avoid conflicts with other projects:
# POSTGRES_PORT (default 5433), REDIS_PORT (default 6380)
# Uses same project name & postgres_data volume as docker-compose.prod.yml — data is shared
name: online-game-commenter
services:
postgres:
image: postgres:15-alpine
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: videoplatform
ports:
- "${POSTGRES_PORT:-5433}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
restart: always
ports:
- "${REDIS_PORT:-6380}:6379"
screencast-worker:
build:
context: ./apps/backend
dockerfile: Dockerfile.worker
restart: unless-stopped
depends_on:
- redis
env_file:
- .env
environment:
- REDIS_URL=redis://redis:6379
- DATABASE_URL=postgresql://user:password@postgres:5432/videoplatform
- DISPLAY=:99
- PULSE_SINK=recording
- SCREENCAST_MAX_DURATION=${SCREENCAST_MAX_DURATION:-600}
- BACKEND_URL=${BACKEND_URL:-http://host.docker.internal:3001}
- SCREENCAST_PREVIEW_SECRET=${SCREENCAST_PREVIEW_SECRET}
- NODE_OPTIONS=--tls-min-v1.2
cap_add:
- SYS_ADMIN
shm_size: '2gb'
volumes:
postgres_data: