Created
December 28, 2017 15:47
-
-
Save dermatologist/80b674fae8a6ee1c691bc09d1f73fe46 to your computer and use it in GitHub Desktop.
Debugging OpenMRS module using docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.1' | |
services: | |
db: | |
restart: "always" | |
image: mariadb:10 | |
command: "mysqld --character-set-server=utf8 --collation-server=utf8_general_ci" | |
environment: | |
MYSQL_DATABASE: openmrs | |
MYSQL_ROOT_PASSWORD: Admin123 | |
MYSQL_USER: openmrs | |
MYSQL_PASSWORD: Admin123 | |
volumes: | |
- ./dbdump:/docker-entrypoint-initdb.d | |
- db-data:/var/lib/mysql | |
healthcheck: | |
test: "exit 0" | |
web: | |
#build: web | |
restart: "always" | |
image: openmrs/openmrs-reference-application-distro:${OPENMRS_VERSION:-2.6} | |
depends_on: | |
- db | |
ports: | |
- "8080:8080" | |
environment: | |
DB_DATABASE: openmrs | |
DB_HOST: db | |
DB_USERNAME: openmrs | |
DB_PASSWORD: Admin123 | |
DB_CREATE_TABLES: 'true' # change to 'true' if using an empty database | |
DB_AUTO_UPDATE: 'true' # change to 'true' if using an empty database | |
MODULE_WEB_ADMIN: 'true' # allow web admin on OpenMRS | |
volumes: | |
- /home/beapen/work/openmrs/_data:/usr/local/tomcat/.OpenMRS | |
- /usr/local/tomcat/.OpenMRS/modules/ # used to mount persistent docker volume for modules | |
- /usr/local/tomcat/.OpenMRS/owa/ # used to mount persistent docker volume for owa | |
healthcheck: | |
test: ["CMD", "curl", "-f", "http://localhost:8080/openmrs/"] | |
timeout: 20s | |
volumes: | |
db-data: | |
#web-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment