-
Notifications
You must be signed in to change notification settings - Fork 40
/
docker-compose.yml
58 lines (55 loc) · 1.61 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
---
version: '3'
services:
db:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-mysqlfordocker}
MYSQL_DATABASE: ${DB_NAME:-atlasdb}
MYSQL_USER: ${DB_USERNAME:-atlas}
MYSQL_PASSWORD: ${DB_PASSWORD:-iamatlas}
volumes:
- mysql-data:/var/lib/mysql
restart: always
healthcheck:
test: "exit 0"
atlas:
image: openmrs/atlas:staging
depends_on:
- db
environment:
DB_HOST: ${DB_HOST:-db}
DB_NAME: ${DB_NAME:-atlasdb}
DB_USERNAME: ${DB_USERNAME:-atlas}
DB_PASSWORD: ${DB_PASSWORD:-iamatlas}
LDAP_URI: ${LDAP_URI:-ldaps://ldap-stg.openmrs.org:636}
LDAP_USER: ${LDAP_USER:-atlas}
LDAP_PASSWORD: ${LDAP_PASSWORD:-magic}
LDAP_USERS_GROUP: ${LDAP_USERS_GROUP:-atlas-users}
LDAP_ADMIN_GROUP: ${LDAP_ADMIN_GROUP:-atlas-administrators}
MAIL_HOST: ${MAIL_HOST:-smtp.mandrillapp.com}
MAIL_PORT: ${MAIL_PORT:-587}
MAIL_AUTH: ${MAIL_AUTH:-true}
MAIL_USER: ${MAIL_USER:-infrastructure@openmrs.org}
MAIL_PASS: ${MAIL_PASS:-magic}
GOOGLE_MAPS_JS_API_KEY: ${GOOGLE_MAPS_JS_API_KEY:-XXXXXXXXXXX_XXXXXX-XXXXXXXXXXX-XXXXXXXX}
ports:
- 8548:3000
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/markerSites/"]
backup:
image: openmrs/cron-backup:1.0.0
depends_on:
- db
volumes:
- mysql-data:/mysql_data
- ${BACKUP_DIR-./backups}:/backup
environment:
- DIRS=/mysql_data:atlas_mysql
- SCHEDULE=0 0 * * *
restart: always
healthcheck:
test: "exit 0"
volumes:
mysql-data: