-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 932 Bytes
/
docker-compose.yml
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
networks:
webshot-roulette:
driver: bridge
services:
redis:
image: "redis:latest"
container_name: redis
ports:
- "6379:6379"
networks:
- webshot-roulette
server:
image: ${SERVER_IMAGE:-ghcr.io/tonyd33/webshot-roulette/server}
depends_on:
redis:
condition: service_started
container_name: server
command: "node dist/server/src/main.js"
ports:
- "6707:6707"
environment:
- PORT=6707
- NODE_ENV=production
- REDIS_HOST=redis
- REDIS_PORT=6379
networks:
- webshot-roulette
client:
image: ${CLIENT_IMAGE:-ghcr.io/tonyd33/webshot-roulette/client}
depends_on:
server:
condition: service_started
container_name: client
command: "npm run start"
ports:
- "9422:9422"
environment:
- PORT=9422
- "SERVER_URL=http://server:6707"
networks:
- webshot-roulette