-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
60 lines (59 loc) · 1.18 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
version: '3'
services:
pgndb-database:
build:
context: ./database
dockerfile: Dockerfile
image: pgndb-database:1.0.0
container_name: pgndb-database
restart: always
volumes:
- pgndb-data:/var/lib/postgresql
networks:
backend:
ipv4_address: 172.18.0.2
ports:
- "0.0.0.0:5432:5432"
pgndb-frontend:
build:
context: ./deployment
dockerfile: Dockerfile
image: pgndb-frontend:1.0.0
container_name: pgndb-frontend
restart: always
networks:
frontend:
ipv4_address: 172.19.0.2
ports:
- "0.0.0.0:4200:80"
pgndb-backend:
build:
context: .
dockerfile: Dockerfile
image: pgndb-backend:1.0.0
container_name: pgndb-backend
restart: always
depends_on:
- "pgndb-database"
networks:
backend:
ipv4_address: 172.18.0.3
frontend:
ipv4_address: 172.19.0.3
ports:
- "0.0.0.0:9095:9095"
networks:
backend:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.18.0.0/16
frontend:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.19.0.0/16
volumes:
pgndb-data: