-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose_nginx.yml
119 lines (119 loc) · 4.19 KB
/
docker-compose_nginx.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
version: '2.2'
services:
sormas:
restart: unless-stopped
links:
- postgres
image: hzibraunschweig/sormas-application:${SORMAS_DOCKER_VERSION}
environment:
- SORMAS_POSTGRES_USER=${SORMAS_POSTGRES_USER}
- SORMAS_POSTGRES_PASSWORD=${SORMAS_POSTGRES_PASSWORD}
- SORMAS_SERVER_URL=${SORMAS_SERVER_URL}
- DB_HOST=${DB_HOST}
- DOMAIN_NAME=${DOMAIN_NAME}
- DB_JDBC_MAXPOOLSIZE=${DB_JDBC_MAXPOOLSIZE}
- DB_NAME=${DB_NAME}
- MAIL_HOST=${MAIL_HOST}
- SMTP_PORT=${SMTP_PORT}
- SMTP_USER=${SMTP_USER}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- SMTP_STARTTLS=${SMTP_STARTTLS}
- SMTP_SSL=${SMTP_SSL}
- SMTP_ASYNC_SENDING=${SMTP_ASYNC_SENDING}
- SMTP_AUTH_ENABLED=${SMTP_AUTH_ENABLED}
- EMAIL_NOTIFICATION_ENABLED=${EMAIL_NOTIFICATION_ENABLED}
- LOG_SENDER_ADDRESS=${LOG_SENDER_ADDRESS}
- LOG_RECIPIENT_ADDRESS=${LOG_RECIPIENT_ADDRESS}
- LOG_SUBJECT=${LOG_SUBJECT}
- MAIL_FROM=${MAIL_FROM}
- SORMAS_VERSION=${SORMAS_VERSION}
- LOCALE=${LOCALE}
- COUNTRY_NAME=${COUNTRY_NAME}
- EPIDPREFIX=${EPIDPREFIX}
- SEPARATOR=${SEPARATOR}
- EMAIL_SENDER_ADDRESS=${EMAIL_SENDER_ADDRESS}
- EMAIL_SENDER_NAME=${EMAIL_SENDER_NAME}
- LATITUDE=${LATITUDE}
- LONGITUDE=${LONGITUDE}
- MAP_ZOOM=${MAP_ZOOM}
- TZ=${TZ}
- JVM_MAX=${APPSERVER_JVM_MAX}
- GEO_UUID=${GEO_UUID}
- GEO_TEMPLATE=${GEO_TEMPLATE}
- GEO_LONG_TEMPLATE=${GEO_LONG_TEMPLATE}
- GEO_LAT_TEMPLATE=${GEO_LAT_TEMPLATE}
- DEVMODE=${DEVMODE}
- JSON_LOGGING=${JSON_LOGGING}
- NAMESIMILARITYTHRESHOLD=${NAMESIMILARITYTHRESHOLD}
- CREATE_DEFAULT_ENTITIES=${CREATE_DEFAULT_ENTITIES}
- AS_ADMIN_NEWPASSWORD=${AS_ADMIN_NEWPASSWORD}
- DC_EXCLUDE_ARCHIVED_PERSON_ENTRIES=${DC_EXCLUDE_ARCHIVED_PERSON_ENTRIES}
- MAP_USECOUNTRYCENTER=${MAP_USECOUNTRYCENTER}
volumes:
- ${SORMAS_PATH}/documents:/opt/sormas/documents
- ${SORMAS_PATH}/custom:/opt/sormas/custom
- ${SORMAS_PATH}/sormas2sormas:/opt/sormas/sormas2sormas
- ${SORMAS_PATH}/sormas-logs:/opt/domains/sormas/logs
mem_limit: ${APPSERVER_MEM}
mem_reservation: ${APPSERVER_MEM_RESERVED}
postgres:
restart: unless-stopped
command: -c 'config_file=/etc/postgresql/postgresql.conf'
image: hzibraunschweig/sormas-postgres:${SORMAS_DOCKER_VERSION}
environment:
- POSTGRES_PASSWORD=${SORMAS_POSTGRES_PASSWORD}
- DB_NAME=sormas
- SORMAS_POSTGRES_PASSWORD=${SORMAS_POSTGRES_PASSWORD}
- SORMAS_POSTGRES_USER=${SORMAS_POSTGRES_USER}
- TZ=${TZ}
volumes:
- ${SORMAS_PATH}/psqldata:/var/lib/postgresql/data
ports:
- "5432:5432"
cpus: ${DB_CPUS}
mem_limit: ${DB_MEM}
mem_reservation: ${DB_MEM_RESERVED}
pg_dump:
restart: unless-stopped
image: hzibraunschweig/sormas-pg-dump:${SORMAS_DOCKER_VERSION}
environment:
- DB_HOST=${DB_HOST}
- PGPASSWORD=${SORMAS_POSTGRES_PASSWORD}
- POSTGRES_USER=${SORMAS_POSTGRES_USER}
- TZ=${TZ}
- MIN=15,45 # Twice the hour on 15 and 45 (use crontab notation)
- HOUR= # Keep empty for every hour. Use crontab notation otherwise
- KEEP=1 # keep db dumps for one day in backup folder
- BACKUP_FILES=${BACKUP_FILES}
- BACKUP_PATH=${SORMAS_PATH}
volumes:
- /backup:/var/opt/db_dumps
- ${SORMAS_PATH}:${SORMAS_PATH}
cpus: ${DB_DUMP_CPUS}
mem_limit: ${DB_DUMP_MEM}
mem_reservation: ${DB_DUMP_MEM_RESERVED}
letsencrypt:
restart: unless-stopped
links:
- sormas
depends_on:
- sormas
image: hzibraunschweig/sormas-letsencrypt:${SORMAS_DOCKER_VERSION}
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
- URL=${SORMAS_SERVER_URL}
- EMAIL=${LETSENCRYPT_MAIL}
- DISABLE_CERTBOT=${DISABLE_CERTBOT}
- PROMETHEUS_SERVERS=${PROMETHEUS_SERVERS}
- HTTP_TIMEOUT=${HTTP_TIMEOUT}
volumes:
- /var/lib/docker/letsencrypt-config:/config
- ./letsencrypt/certs:/config/etc/letsencrypt/live
ports:
- 443:443
- 80:80
cpus: ${WEBSERVER_CPUS}
mem_limit: ${WEBSERVER_MEM}
mem_reservation: ${WEBSERVER_MEM_RESERVED}