Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Debugging OpenMRS module using docker
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
You can’t perform that action at this time.