forked from LiveOverflow/PwnAdventure3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.68 KB
/
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
version: '3.2'
services:
init:
build: .
image: pwn3server
master:
image: pwn3server
hostname: master.pwn3
networks:
default:
aliases:
- "master.pwn3"
ports:
- "3333:3333"
volumes:
- type: bind
source: "./server"
target: "/opt/pwn3/server"
- type: bind
source: "./client"
target: "/opt/pwn3/client"
- type: bind
source: "./postgres-data"
target: "/opt/pwn3/postgres-data"
command: "/opt/pwn3/setup/masterserver.sh"
depends_on:
- init
game:
image: pwn3server
hostname: game.pwn3
networks:
default:
aliases:
- "master.pwn3"
ports:
- "3000-3010:3000-3010"
volumes:
- type: bind
source: "./server"
target: "/opt/pwn3/server"
- type: bind
source: "./client"
target: "/opt/pwn3/client"
command: "/opt/pwn3/setup/gameserver.sh"
depends_on:
- init
- master