forked from bitaps-com/bglapiserver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml.template
38 lines (34 loc) · 1 KB
/
docker-compose.yml.template
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
version: '3.3'
services:
bglapi-server-postgres:
build: ./postgres
container_name: bglapi-server-postgres
command: postgres -c config_file=/etc/postgres.conf
volumes:
- ./data/postgres/:/var/lib/postgresql/data/
- ./data/socket/:/var/run/postgresql/
- ./config/postgres.conf:/etc/postgres.conf
stdin_open: true
tty: true
bglapi-engine:
build: ./app
container_name: bglapi-engine
volumes:
- ./config/:/config/
- ./data/socket/:/var/run/postgresql/
depends_on:
- bglapi-server-postgres
network_mode: "host"
stdin_open: true
tty: true
bglapi-server:
build: ./api
container_name: bglapi-server
volumes:
- ./config/:/config/
- ./data/socket/:/var/run/postgresql/
depends_on:
- bglapi-server-postgres
network_mode: "host"
stdin_open: true
tty: true