generated from MONICA-Project/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
109 lines (105 loc) · 4.62 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
version: '3.7'
services:
# RabbitMQ
rabbit:
container_name: hldf_docker_rabbit_${ENVTYPE}
hostname: hldf_rabbit_${ENVTYPE}
image: rabbitmq:latest
networks:
- monica_hldfad_net
environment:
# remind that if you want to enable the admin console, accessible
# from localhost:15672, you must type the following command
# 'rabbitmq-plugins enable rabbitmq_management' into the rabbit container
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASS}
- RABBITMQ_DEFAULT_VHOST=/
- RABBITMQ_LOG_BASE=/var/log/rabbitmq
- RABBITMQ_HOSTNAME=rabbit_${ENVTYPE}
ports:
- "${RABBITMQ_DOCKER_PORT_DIAGNOSTIC}:5672" # we forward this port because it's useful for debugging
- "${RABBITMQ_DOCKER_PORT_SERVICE}:15672" # hre, we can access rabbitmq management plugin
#Celery worker
worker:
container_name: hldf_docker_celery_worker_${ENVTYPE}
hostname: hldf_host_celery_worker_${ENVTYPE}
build:
context: .
dockerfile: ./volumes/monica_celery/Dockerfile
args:
- SELECT_DB_TYPE=${V_ARG_DATABASETYPE}
- ENVIMAGECONFIGURATION=DEVELOPMENT
# command: ./volumes/monica_celery/celery_entrypoint.sh
volumes:
# - ./monica:/code
- ./volumes/monica_celery/logs:/logs
- ./volumes/monica_celery/appconfig:/appconfig
- ./volumes/monica_celery/var/run/celery:/var/run/celery
networks:
- monica_hldfad_net
environment:
ENV_SELECT_DB_TYPE: ${V_ARG_DATABASETYPE}
DJANGO_SETTINGS_MODULE: shared.settings.appglobalconf
DB_PORT_5432_TCP_ADDR: ${PGSQL_HOST}
DB_PORT_5432_TCP_PORT: ${PGSQL_PORT}
DB_USER: ${PGSQL_USER}
DB_PASSWORD: ${PGSQL_PASSWORD}
DB_NAME: ${PGSQL_DATABASE}
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOSTNAME: rabbit
RABBITMQ_PORT: 5672
CACHEREDIS_DEFAULT_HOSTNAME: redis
CACHEREDIS_DEFAULT_PORT: 6379
ENV_MQTT_OBSERVATION_URL: ${V_MQTTOBSERV_URL}
ENV_CATALOG_PORT: ${V_CATALOG_PORT}
ENV_WEB_BASE_URL: ${V_BASE_URL}
ENV_MQTT_OBSERVATION_PORT: ${V_MQTTOBSERV_PORT}
ENV_CATALOG_USERNAME: ${V_CATALOG_USER}
ENV_CATALOG_PASSWORD: ${V_CATALOG_PWD}
MOSQUITTO_USERNAME: ${MOSQUITTO_USERNAME_VALUE}
MOSQUITTO_PASSWORD: ${MOSQUITTO_PASSWORD_VALUE}
WP6_CATALOG_CONNECTIONURL: ${V_WP6CATALOG_URL}
WP6_CATALOG_CONNECTIONPORT: ${V_WP6CATALOG_PORT}
OUTPUT_MQTTBROKER_USERNAME: ${V_MQTTOUTPUT_USER}
OUTPUT_MQTTBROKER_PASSWORD: ${V_MQTTOUTPUT_PWD}
CONFENVIRONMENT_GLOBALINFO: ${CONFENV_GLOBINFO}
CONFENVIRONMENT_DEBUG: ${V_CONFENVIRONMENT_DEBUG}
CONFENVIRONMENT_DEBUGTEMPLATE: ${V_CONFENVIRONMENT_DEBUGTEMPLATE}
APPSETTING_MONITORINGAREA_LATITUDE: ${APPENV_MONAREA_LAT}
APPSETTING_MONITORINGAREA_LONGITUDE: ${APPENV_MONAREA_LONG}
APPSETTING_MONITORINGAREA_HORIZONTALSIZE_M: ${APPENV_MONAREA_HORIZSZ_M}
APPSETTING_MONITORINGAREA_CELLSIZE_M: ${APPENV_MONAREA_CELLSZ_M}
APPSETTING_MONITORINGAREA_VERTICALSIZE_M: ${APPENV_MONAREA_VERTSZ_M}
APPSETTING_INTERVAL_OBS_VALIDITY_SECS: ${APPENV_INTERVAL_OBS_VALIDITY_SECS}
APPSETTING_ENABLE_EMPTY_CROWD_HEATMAP: ${APPENV_EN_EMPTYCROWDMAP}
APPSETTING_ENABLE_RANDOM_OUTPUT: ${APPENV_ENABLE_RANDOM_OUTPUT}
APPSETTING_ENABLE_RANDOM_QUEUEDETECTIONALERT: ${APPENV_ENABLE_RANDOM_QUEUEDETECTIONALERT}
APPSETTING_ENABLE_RANDOM_DENSITYMATRIX: ${APPENV_ENABLE_RANDOM_DENSITYMATRIX}
APPSETTING_ENABLE_RANDOM_FAKEQUEUEDETECTION: ${APPENV_ENABLE_RANDOM_FAKEQUEUEDETECTION}
APPSETTING_OBSERVATION_DEBUG_INTERVALNUMBERNOTIFICATION: ${APPENV_OBSERVATION_DEBUG_INTERVALNUMBERNOTIFICATION}
APPSETTING_TASK_ELABORATION_FREQ_SECS: ${APPENV_TASKELAB_FREQSEC}
APPSETTING_TASK_ALIVEAPP_FREQ_SECS: ${APPENV_TASKALIVE_FREQSEC}
APPSETTING_ENABLE_OBS_IOTIDRETRIEVE: ${APPENV_ENABLEOBSIDGET}
APPSETTING_GOST_NAME: ${APPENV_GOST_NAME}
APPSETTINGS_ENABLE_IMMEDIATEELABORATION_FEEDBYNUMBEROBS: ${V_APPSETTINGS_ENABLE_IMMEDIATEELABORATION_FEEDBYNUMBEROBS}
APPSETTING_MINIMUM_ACCEPTWRISTBAND_START: 100
links:
- rabbit
- redis
depends_on:
- rabbit
- redis
redis:
container_name: hldf_docker_cache_redis_${ENVTYPE}
hostname: hldf_host_cache_redis_${ENVTYPE}
image: redis:latest
sysctls:
net.core.somaxconn: 1024
ports:
- '${REDISCACHE_PORT}:6379'
networks:
- monica_hldfad_net
networks:
monica_hldfad_net:
name: monica-hldfad-net-${ENVTYPE}