-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
70 lines (70 loc) · 1.37 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
version: '3.5'
services:
postgres:
container_name: postgres
hostname: postgres
image: mdillon/postgis
restart: always
environment:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- gpao-network
api-gpao:
build:
context: ./
dockerfile: docker/api/Dockerfile
container_name: api-gpao
hostname: api-gpao
image: api-gpao
restart: always
env_file:
- docker/api.env
depends_on:
- postgres
ports:
- 8080:8080
networks:
- gpao-network
monitor-gpao:
build:
context: ./
dockerfile: docker/monitor/Dockerfile
container_name: monitor-gpao
hostname: monitor-gpao
image: monitor-gpao
restart: always
environment:
- URL_API=api-gpao
- URL_API_PORT=8080
depends_on:
- api-gpao
ports:
- 8000:8000
networks:
- gpao-network
client-gpao:
build:
context: ./
dockerfile: docker/client/Dockerfile
image: client-gpao
restart: always
environment:
- URL_API=api-gpao
entrypoint: ["python", "client.py"]
depends_on:
- api-gpao
networks:
- gpao-network
volumes:
postgres-data:
networks:
gpao-network:
name: gpao-network
driver: bridge
ipam:
config:
- subnet: 172.100.0.0/16