-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
201 lines (190 loc) · 4.94 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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
version: '3.5'
services:
lgpdjus_api:
container_name: lgpdjus_api
image: renatocron/lgpdjus_api:2022-11-10
restart: unless-stopped
networks:
- html2pdf
- database
- cache
- minio
- external_network
ports:
- "172.17.0.1:${LGPDJUS_API_PORT}:8080"
volumes:
- ../data/lgpdjus-data/:/data/
- ./api/:/src/
env_file:
- .env
depends_on:
- lgpdjus_db_pg
- redis
- minio
lgpdjus_emaildb:
container_name: lgpdjus_emaildb
image: renatocron/email-db-service:2022-11-10
restart: unless-stopped
networks:
- database
volumes:
- ../data/emaildb-data/:/data/
- "${EMAILDB_SRC_CODE}:/src/"
# update to your path of eokoe/email-db-service
depends_on:
- lgpdjus_db_pg
environment:
VARIABLES_JSON_IS_UTF8: 1
EMAILDB_DB_HOST: "${POSTGRESQL_HOST}"
EMAILDB_DB_PORT: "${POSTGRESQL_PORT}"
EMAILDB_DB_USER: "${POSTGRESQL_USER}"
EMAILDB_DB_PASS: "${POSTGRESQL_PASSWORD}"
EMAILDB_DB_NAME: "${POSTGRESQL_DBNAME}"
directus:
container_name: lgpdjus_directus
image: directus/directus:9.0.0-rc.87
restart: unless-stopped
networks:
- database
depends_on:
- lgpdjus_db_pg
ports:
- "172.17.0.1:${LGPDJUS_DIRECTUS_PORT}:8055"
environment:
PUBLIC_URL: "${DIRECTUS_PUBLIC_URL}"
KEY: "${DIRECTUS_KEY}"
SECRET: "${DIRECTUS_SECRET}"
DB_CLIENT: 'pg'
DB_HOST: "${POSTGRESQL_HOST}"
DB_PORT: "${POSTGRESQL_PORT}"
DB_DATABASE: "${POSTGRESQL_DBNAME}"
DB_USER: "${POSTGRESQL_USER}"
DB_PASSWORD: "${POSTGRESQL_PASSWORD}"
EMAIL_FROM: "${EMAIL_SMTP_FROM}"
EMAIL_TRANSPORT: 'smtp'
EMAIL_SMTP_HOST: "${EMAIL_SMTP_HOST}"
EMAIL_SMTP_PORT: "${EMAIL_SMTP_PORT}"
EMAIL_SMTP_USER: "${EMAIL_SMTP_USER}"
EMAIL_SMTP_PASSWORD: "${EMAIL_SMTP_PASSWORD}"
EMAIL_SMTP_SECURE: 'true'
html2pdf:
container_name: lgpdjus_html2pdf
image: oberonamsterdam/wkhtmltopdf:latest
restart: unless-stopped
networks:
- html2pdf
lgpdjus_db_pg:
container_name: lgpdjus_db_pg
image: postgres:13.3
volumes:
- ../data/lgpdjus_pg_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: "${POSTGRESQL_PASSWORD}"
POSTGRES_USER: "${POSTGRESQL_USER}"
POSTGRES_DB: "${POSTGRESQL_DBNAME}"
networks:
- database
logging:
driver: "json-file"
options:
max-file: '100'
max-size: 1m
restart: unless-stopped
metabase_db_pg:
container_name: metabase_db_pg
image: postgres:13.3
volumes:
- ../data/metabase_pg_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: "${POSTGRESQL_PASSWORD}_metabase"
POSTGRES_USER: "${POSTGRESQL_USER}_metabase"
POSTGRES_DB: "${POSTGRESQL_DBNAME}_metabase"
networks:
- database_metabase
logging:
driver: "json-file"
options:
max-file: '100'
max-size: 1m
restart: unless-stopped
metabase:
container_name: metabase
image: metabase/metabase:v0.39.1
restart: unless-stopped
networks:
- database_metabase
- database
- external_network
depends_on:
- metabase_db_pg
ports:
- "172.17.0.1:${LGPDJUS_METABASE_PORT}:3000"
environment:
MB_DB_TYPE: postgres
MB_DB_HOST: metabase_db_pg
MB_DB_PORT: 5432
MB_DB_USER: "${POSTGRESQL_USER}_metabase"
MB_DB_PASS: "${POSTGRESQL_PASSWORD}_metabase"
MB_DB_DBNAME: "${POSTGRESQL_DBNAME}_metabase"
logging:
driver: "json-file"
options:
max-file: '100'
max-size: 1m
redis:
image: docker.io/bitnami/redis:6.2
restart: unless-stopped
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
networks:
- cache
expose:
- "6379"
volumes:
- ../data/redis_data:/bitnami/redis/data
logging:
driver: "json-file"
options:
max-file: '100'
max-size: 1m
minio:
container_name: minio
image: minio/minio:RELEASE.2021-07-27T02-40-15Z
restart: unless-stopped
hostname: minio
command: server --console-address ":9001" /data1
environment:
MINIO_ROOT_USER: "${MINIO_ROOT_USER}"
MINIO_ROOT_PASSWORD: "${MINIO_ROOT_PASSWORD}"
ports:
- "172.17.0.1:${MINIO_CONSOLE_PORT}:9001"
networks:
- minio
expose:
- "9000"
- "9001"
volumes:
- ../data/minio_data:/data1
logging:
driver: "json-file"
options:
max-file: '100'
max-size: 1m
networks:
external_network:
database:
name: lgdpjus_db_network
driver: bridge
database_metabase:
name: metabase_db_network
driver: bridge
cache:
name: cache_network
driver: bridge
html2pdf:
name: html2pdf_network
driver: bridge
minio:
name: minio_network
driver: bridge