-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (73 loc) · 1.91 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3.8"
x-env-file: .env
services:
server:
build: ./server
ports:
- "8090:${SERVER_PORT}"
networks:
- mtgbiz
depends_on:
- db
environment:
- SERVER_HOST=${SERVER_HOST}
- SERVER_PORT=${SERVER_PORT}
- SERVER_PATH_PARAM_CLIENT1=${SERVER_PATH_PARAM_CLIENT1}
- SERVER_PATH_PARAM_CLIENT2=${SERVER_PATH_PARAM_CLIENT2}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PORT=${POSTGRES_PORT}
client1:
build: ./client1
ports:
- "8091:${CLIENT1_PORT}"
environment:
- CLIENT1_PORT=${CLIENT1_PORT}
- SERVER_PROTOCOL_CLIENT1=${SERVER_PROTOCOL_CLIENT1}
- SERVER_HOST_CLIENT1=${SERVER_HOST_CLIENT1}
- SERVER_PORT_CLIENT1=${SERVER_PORT_CLIENT1}
- SERVER_PATH_PARAM_CLIENT1=${SERVER_PATH_PARAM_CLIENT1}
networks:
- mtgbiz
depends_on:
- server
volumes:
- ./client1.out:/client1.out
client2:
build: ./client2
ports:
- "8092:${CLIENT2_PORT}"
environment:
- CLIENT2_PORT=${CLIENT2_PORT}
- SERVER_PROTOCOL_CLIENT2=${SERVER_PROTOCOL_CLIENT2}
- SERVER_HOST_CLIENT2=${SERVER_HOST_CLIENT2}
- SERVER_PORT_CLIENT2=${SERVER_PORT_CLIENT2}
- SERVER_PATH_PARAM_CLIENT2=${SERVER_PATH_PARAM_CLIENT2}
networks:
- mtgbiz
depends_on:
- server
db:
image: postgres
hostname: postgres
ports:
- "15432:${POSTGRES_PORT}"
networks:
- mtgbiz
environment:
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PORT=${POSTGRES_PORT}
volumes:
- ./data/:/data
- ./migrations/:/docker-entrypoint-initdb.d
networks:
mtgbiz:
name: mtgbiz
volumes:
db-mgtbiz:
driver: local