-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 982 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
45
46
47
48
49
50
51
version: "3.8"
services:
website:
build:
context: .
dockerfile: packages/website/Dockerfile
args:
- VITE_WSS_URL=wss://wss.survivethenightgame.com
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- VITE_WSS_URL=wss://wss.survivethenightgame.com
networks:
- app_network
game-server:
build:
context: .
dockerfile: packages/game-server/Dockerfile
restart: unless-stopped
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin}
networks:
- app_network
caddy:
image: caddy:2
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
networks:
- app_network
networks:
app_network:
driver: bridge
volumes:
caddy_data:
caddy_config: