-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 862 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 862 Bytes
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
services:
backend:
build:
context: .
dockerfile: packages/backend/Dockerfile
ports:
- "8000:8000"
environment:
- NODE_ENV=production
- PORT=8000
- FISHJAM_ID=${FISHJAM_ID}
- FISHJAM_MANAGEMENT_TOKEN=${FISHJAM_MANAGEMENT_TOKEN}
- ELEVENLABS_API_KEY=${ELEVENLABS_API_KEY}
restart: unless-stopped
web:
build:
context: .
dockerfile: packages/web/Dockerfile
args:
- VITE_FISHJAM_ID=${FISHJAM_ID}
- VITE_BACKEND_URL=${BACKEND_URL:-http://nginx/api}
environment:
- VITE_BACKEND_URL=http://nginx/api
restart: unless-stopped
depends_on:
- backend
nginx:
image: nginx:alpine
ports:
- "5000:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- backend
- web
restart: unless-stopped