-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (74 loc) · 2.5 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
name: ${PROJECT_NAME:-sigeca_central}
services:
db:
container_name: ${PROJECT_NAME:-sigeca_central}_db
image: postgres:latest
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
restart: always
volumes:
- db_data:/var/lib/postgresql/data
- db_logs:/var/log/postgresql
- ./sql/init:/docker-entrypoint-initdb.d
- ./share:/share
nifi:
container_name: ${PROJECT_NAME:-sigeca_central}_nifi
image: apache/nifi:${NIFI_VERSION:-2.0.0-M2}
environment:
- NIFI_WEB_HTTPS_HOST=0.0.0.0
- NIFI_WEB_HTTPS_PORT=${NIFI_WEB_HTTPS_PORT:-8443}
- NIFI_WEB_PROXY_HOST=${DOMAIN_NAME}
- SINGLE_USER_CREDENTIALS_USERNAME=${NIFI_USER}
- SINGLE_USER_CREDENTIALS_PASSWORD=${NIFI_PASSWORD}
- MAPA_SANITARIO_FQDN=${MAPA_SANITARIO_FQDN}
- MAPA_SANITARIO_USERNAME=${MAPA_SANITARIO_USERNAME}
- MAPA_SANITARIO_PASSWORD=${MAPA_SANITARIO_PASSWORD}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- NIFI_PYTHON_PATH=/opt/nifi/nifi-current/python-scripts/
# For debugging only
#ports:
# - ${NIFI_WEB_HTTPS_PORT:-8443}:${NIFI_WEB_HTTPS_PORT:-8443}
volumes:
- nifi_conf:/opt/nifi/nifi-current/conf
- ./config/nifi/lib/postgresql-42.7.3.jar:/opt/nifi/nifi-current/lib/postgresql-42.7.3.jar
- ./config/nifi/python-scripts/:/opt/nifi/nifi-current/python-scripts/
- ./share:/share
api:
container_name: ${PROJECT_NAME:-sigeca_scentral}_api
image: sigeca-api
build: ./sigeca-api
environment:
- API_ROOT_PATH=${API_ROOT_PATH}
- API_AUTH_SECRET_KEY=${API_AUTH_SECRET_KEY}
- DB_HOST=db
- DB_PORT=5432 # Port inside db container
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
nginx:
container_name: ${PROJECT_NAME:-sigeca_scentral}_nginx
image: nginx:latest
ports:
- 80:80
- 443:443
- ${DB_PORT:-5432}:5432
volumes:
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./config/nginx/http.conf:/etc/nginx/conf.d/http.conf
- ./config/nginx/postgres.conf:/etc/nginx/postgres.conf
- ./config/nginx/ssl:/etc/nginx/ssl
- ./share:/share
volumes:
db_data:
name: ${PROJECT_NAME:-sigeca_central}_db_data
db_logs:
name: ${PROJECT_NAME:-sigeca_central}_db_logs
nifi_conf:
name: ${PROJECT_NAME:-sigeca_central}_nifi_conf
networks:
default:
name: ${PROJECT_NAME:-sigeca_central}_network