-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
56 lines (51 loc) · 1.28 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.9'
services:
user_db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: 1234
POSTGRES_USER: parksangmin
POSTGRES_DB: parksangmin
volumes:
- ./user/init.sql:/docker-entrypoint-initdb.d/init.sql
user_server:
image: jigeria/practice_msa:latest
build:
dockerfile: Dockerfile
restart: always
ports:
- 5101:5101
links:
- user_db:db
command: python3 -m flask --app user.user run --port 5101 --host 0.0.0.0
card_db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: 1234
POSTGRES_USER: parksangmin
POSTGRES_DB: parksangmin
volumes:
- ./card/init.sql:/docker-entrypoint-initdb.d/init.sql
card_server:
image: jigeria/practice_msa:latest
build:
dockerfile: Dockerfile
restart: always
ports:
- 5102:5102
links:
- card_db:db
command: python3 -m flask --app card.card run --port 5102 --host 0.0.0.0
gateway_server:
image: jigeria/practice_msa:latest
build:
dockerfile: Dockerfile
restart: always
ports:
- 5100:5100
links:
- card_server:card_server
- user_server:user_server
command: python3 -m flask --app gateway.gateway run --port 5100 --host 0.0.0.0