-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
41 lines (41 loc) · 993 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
version: "3"
services:
# https://hub.docker.com/r/emilbayes/signalhub
signalhub:
image: emilbayes/signalhub:latest
ports:
- "8080:8080"
turnserver:
image: meetrix/coturn-long-term-cred
network_mode: "host"
tty: true
environment:
- TURN_PORT_START=49152
- TURN_PORT_END=65535
# Update with your domain name
- TURN_REALM=hostname
game-server:
image: your docker image repo here
build:
context: ..
dockerfile: devops/server.Dockerfile
command: node ./build/server.js
ports:
- "4000:4000"
links:
- signalhub
- turnserver
- game-client
game-client:
image: your docker image repo here
build:
context: ..
dockerfile: devops/client.Dockerfile
## Update these hostnames to yoru domain
args:
- SIGNALHUB_HOST=hostname
- SOCKETIO_HOST=hostname
- TURNSERVER_HOST=hostname
- ASSET_HOST=hostname
ports:
- "80:80"