-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
138 lines (128 loc) · 3.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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
version: '3.5'
services:
fetcher:
build:
context: fetcher/
container_name: fetcher
restart: always
environment:
- USER=${USER:-admin}
- PASSWORD=${PASSWORD:-secret}
- SQLSERVER_SAGRES19_HOST=${SQLSERVER_SAGRES19_HOST:-host}
- SQLSERVER_SAGRES19_Database=${SQLSERVER_SAGRES19_Database:-db}
- SQLSERVER_SAGRES19_PORT=${SQLSERVER_SAGRES19_PORT:-1401}
- SQLSERVER_SAGRES19_USER=${SQLSERVER_SAGRES19_USER:-user}
- SQLSERVER_SAGRES19_PASS=${SQLSERVER_SAGRES19_PASS:-secret}
volumes:
- ./fetcher:/app/fetcher
ports:
- 8787:8787
networks:
- proxynet
transformer:
build:
context: transformador/
container_name: transformador
restart: always
environment:
- USER=${USER:-admin}
- PASSWORD=${PASSWORD:-secret}
volumes:
- ./transformador:/app/transformador
- ./fetcher/data:/app/fetcher/data
networks:
- proxynet
feed-al:
build:
context: feed-al/
container_name: feed-al
env_file:
- .env
volumes:
- ./transformador/data:/data
- ./feed-al:/feed-al
ports:
- 7643:7643
depends_on:
- postgres-aldb
- postgres-mcdb
networks:
- proxynet
feed-mc:
build:
context: feed-mc/
container_name: feed-mc
env_file:
- .env
volumes:
- ./tipologias/data:/data
- ./feed-mc:/feed-mc
ports:
- 7644:7644
depends_on:
- postgres-aldb
- postgres-mcdb
networks:
- proxynet
postgres-aldb:
image: postgres:11.1-alpine
container_name: postgres-analytics
restart: always
environment:
- POSTGRES_DB=${POSTGRES_DB:-al_db}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-secret}
- TZ=GMT
volumes:
- postgres_aldb_data:/var/lib/postgresql/data/
# - /mnt/datalake/postgres-aldb:/var/lib/postgresql/data/
ports:
- 7655:5432
networks:
- proxynet
postgres-mcdb:
image: postgres:11.1-alpine
container_name: postgres-monitor-cidadao
restart: always
environment:
- POSTGRES_DB=${POSTGRES_MC_DB:-mc_db}
- POSTGRES_USER=${POSTGRES_MC_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_MC_PASSWORD:-secret}
- TZ=GMT
volumes:
- postgres_mcdb_data:/var/lib/postgresql/data/
# - /mnt/datalake/postgres-mcdb:/var/lib/postgresql/data/
ports:
- 7656:5432
networks:
- proxynet
tipologias:
build:
context: tipologias/
container_name: tipologias
restart: always
environment:
- USER=${USER:-admin}
- PASSWORD=${PASSWORD:-secret}
- POSTGRES_HOST=${POSTGRES_HOST:-host}
- POSTGRES_DB=${POSTGRES_DB:-al_db}
- POSTGRES_PORT=${POSTGRES_PORT:-7655}
- POSTGRES_USER=${POSTGRES_USER:-user}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-secret}
- POSTGRES_MCDB_HOST=${POSTGRES_MCDB_HOST:-host}
- POSTGRES_MCDB_DB=${POSTGRES_MCDB_DB:-mc_db}
- POSTGRES_MCDB_PORT=${POSTGRES_MCDB_PORT:-5432}
- POSTGRES_MCDB_USER=${POSTGRES_MCDB_USER:-postgres}
- POSTGRES_MCDB_PASSWORD=${POSTGRES_MCDB_PASSWORD:-secret}
volumes:
- ./tipologias:/app/tipologias
ports:
- 9090:9090
networks:
- proxynet
networks:
proxynet:
name: monitor_cidadao_network
volumes:
postgres_aldb_data:
postgres_mcdb_data: