forked from openmrs/openmrs-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (50 loc) · 2.02 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
version: "3.7"
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
# the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
#
# Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
# graphic logo is a trademark of OpenMRS Inc.
services:
db:
image: mariadb:10.3
command: "mysqld --character-set-server=utf8 --collation-server=utf8_general_ci"
environment:
MYSQL_DATABASE: ${OMRS_DB_NAME:-openmrs}
MYSQL_USER: ${OMRS_DB_USER:-openmrs}
MYSQL_PASSWORD: ${OMRS_DB_PASSWORD:-openmrs}
MYSQL_ROOT_PASSWORD: ${OMRS_DB_ROOT_PASSWORD:-openmrs}
healthcheck:
test: "mysql --user=${OMRS_DB_USER:-openmrs} --password=${OMRS_DB_PASSWORD:-openmrs} --execute \"SHOW DATABASES;\""
interval: 3s
timeout: 5s
retries: 3
volumes:
- db-data:/var/lib/mysql
api:
image: openmrs/openmrs-core:${TAG:-nightly}
build:
context: .
cache_from:
- openmrs/openmrs-core:${TAG:-dev}
- openmrs/openmrs-core:${TAG:-nightly}
ports:
- "8080:8080"
environment:
OMRS_DB_HOSTNAME: ${OMRS_DB_HOSTNAME:-db}
OMRS_DB_NAME: ${OMRS_DB_NAME:-openmrs}
OMRS_DB_USERNAME: ${OMRS_DB_USERNAME:-openmrs}
OMRS_DB_PASSWORD: ${OMRS_DB_PASSWORD:-openmrs}
OMRS_ADMIN_USER_PASSWORD: ${OMRS_ADMIN_USER_PASSWORD:-Admin123}
OMRS_ADMIN_PASSWORD_LOCKED: ${OMRS_ADMIN_PASSWORD_LOCKED:-true}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/openmrs"]
interval: 3s
timeout: 5s
retries: 3
volumes:
- openmrs-data:/openmrs/data/
volumes:
db-data:
openmrs-data: