-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
115 lines (106 loc) · 3.02 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
version: '3.5'
services:
rbase:
build:
context: .
container_name: r-container
restart: always
environment:
- USER=${USER:-admin}
- PASSWORD=${PASSWORD:-secret}
- POSTGRES_HOST=${POSTGRES_HOST:-postgres}
- POSTGRES_DB=${POSTGRES_DB:-tanamesa}
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-secret}
- RECEITA_HOST=${RECEITA_HOST:-postgres}
- RECEITA_DB=${RECEITA_DB:-rf_fb}
- RECEITA_PORT=${RECEITA_PORT:-32024}
- RECEITA_USER=${RECEITA_USER:-postgres}
- RECEITA_PASSWORD=${RECEITA_PASSWORD:-secret}
- SQLSERVER_TCE_PE_HOST=${SQLSERVER_TCE_PE_HOST:-sqlserver}
- SQLSERVER_TCE_PE_DATABASE=${SQLSERVER_TCE_PE_DATABASE:-TOMECONTA}
- SQLSERVER_TCE_PE_USER=${SQLSERVER_TCE_PE_USER:-SA}
- SQLSERVER_TCE_PE_PASS=${SQLSERVER_TCE_PE_PASS:-secret}
- SQLSERVER_TCE_PE_PORT=${SQLSERVER_TCE_PE_PORT:-32027}
- PATH_DADOS=${PATH_DADOS:-./data}
volumes:
- ./transformer:/app/transformer
- ./fetcher:/app/fetcher
- ${PATH_VOLUME_DADOS:-./data}:/app/data
- ./reports:/app/reports
- ./tests:/app/tests
- .env:/app/.Renviron
ports:
- 8787:8787
networks:
- proxynet
feed:
build:
context: feed/
container_name: feed
image: feed-image
env_file:
- .env
volumes:
- ${PATH_VOLUME_DADOS:-./data}:/data
- ./feed:/feed
depends_on:
- postgres
networks:
- proxynet
fetcher-tce-rs:
build:
context: fetcher/estados/RS/tce/
container_name: fetcher-tce-rs-container
image: fetcher-tce-rs-image
env_file:
- .env
volumes:
- ${PATH_VOLUME_DADOS:-./data}:/code/scripts/data/
- ./fetcher/estados/RS/tce:/code/scripts/
networks:
- proxynet
fetcher-data-federal-drive:
build:
context: fetcher/estados/BR/
container_name: fetcher-data-federal-drive-container
image: fetcher-data-federal-drive-image
env_file:
- .env
volumes:
- ${PATH_VOLUME_DADOS:-./data}:/code/scripts/data/
- ./fetcher/estados/BR/:/code/scripts/
networks:
- proxynet
fetcher-data-federal:
build:
context: fetcher/governo_federal/
container_name: fetcher-data-federal-container
image: fetcher-data-federal-image
env_file:
- .env
volumes:
- ${PATH_VOLUME_DADOS:-./data}:/code/data/
- ./fetcher/governo_federal:/code/
- ${HTTPCACHE_DIR}:${HTTPCACHE_DIR}
networks:
- proxynet
postgres:
image: postgres:11.1-alpine
container_name: postgres-ta-na-mesa
restart: always
environment:
- POSTGRES_DB=${POSTGRES_DB:-tanamesa}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-secret}
- TZ=GMT
volumes:
- ${PATH_VOLUME_DADOS_BD}:/var/lib/postgresql/data/
ports:
- 7655:5432
networks:
- proxynet
networks:
proxynet:
name: ta_na_mesa_network