forked from eado/boelter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
43 lines (42 loc) · 880 Bytes
/
docker-compose.yaml
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
services:
db:
image: postgres:latest
restart: always
env_file:
- .env
environment:
- INSTANCE_NUM=${INSTANCE_NUM:-1}
volumes:
- dbdata:/var/lib/postgresql/data
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
player:
build:
context: .
dockerfile: player/Dockerfile
restart: always
env_file:
- .env
environment:
- INSTANCE_NUM=${INSTANCE_NUM:-1}
ports:
- "${PLAYER_PORT:-2222}:22"
depends_on:
- db
server:
restart: always
build:
context: .
dockerfile: progress/Dockerfile
args:
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
env_file:
- .env
environment:
- INSTANCE_NUM=${INSTANCE_NUM:-1}
ports:
- "${SERVER_PORT:-2223}:22"
- "${SERVER_HTTP_PORT:-8080}:8080"
depends_on:
- db
volumes:
dbdata: