-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
106 lines (106 loc) · 2.65 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: "3.7"
services:
frontend:
build: ./frontend/
image: frontend:latest
depends_on:
- apigateway
networks:
conmansys_network:
environment:
APIGATEWAY_HOST: apigateway
ports:
- target: 80
published: 8060
protocol: tcp
apigateway:
build: ./apigateway/
image: apigateway:latest
depends_on:
- confservice
- insservice
networks:
conmansys_network:
environment:
CONFSERVICE_HOST: confservice
INSSERVICE_HOST: insservice
ports:
- target: 80
published: 8079
protocol: tcp
confservice:
build: ./confservice/
image: confservice:latest
depends_on:
- postgres-service
networks:
conmansys_network:
environment:
DBHOST: postgres-service
DBPORT: 5432
DBUSER: postgres
DBPASS: secret
DBNAME: conmansys
ports:
- target: 80
published: 8080
protocol: tcp
insservice:
build: ./insservice/
image: insservice:latest
depends_on:
- postgres-service
networks:
conmansys_network:
environment:
DBHOST: postgres-service
DBPORT: 5432
DBUSER: postgres
DBPASS: secret
DBNAME: conmansys
ports:
- target: 80
published: 8081
protocol: tcp
postgres-service:
image: postgres:alpine
shm_size: '256mb'
networks:
conmansys_network:
environment:
POSTGRES_PASSWORD: secret
volumes:
- type: volume
source: db-data
target: /var/lib/postgresql/data
pgadmin4:
image: dpage/pgadmin4:latest
depends_on:
- postgres-service
networks:
conmansys_network:
ports:
- target: 80
published: 65535
protocol: tcp
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: secret
testdb:
image: postgres:alpine
shm_size: '256mb'
environment:
POSTGRES_PASSWORD: secret
networks:
testdb_network:
ports:
- target: 5432
published: 5432
protocol: tcp
networks:
conmansys_network:
driver: bridge
testdb_network:
driver: bridge
volumes:
db-data: