Skip to content

Commit

Permalink
Add the docker compose file used for creating pre-filled images
Browse files Browse the repository at this point in the history
  • Loading branch information
Piumal1999 authored and ibacher committed Jul 25, 2023
1 parent 7b91304 commit 7adf79c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docker-compose-no-volumes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This docker compose file is used to create a backend environment without volumes.
version: "3.7"

services:
backend:
image: openmrs/openmrs-reference-application-3-backend:${TAG:-nightly}
depends_on:
- db
environment:
OMRS_CONFIG_MODULE_WEB_ADMIN: "true"
OMRS_CONFIG_AUTO_UPDATE_DATABASE: "true"
OMRS_CONFIG_CREATE_TABLES: "true"
OMRS_CONFIG_CONNECTION_SERVER: db
OMRS_CONFIG_CONNECTION_DATABASE: openmrs
OMRS_CONFIG_CONNECTION_USERNAME: ${OPENMRS_DB_USER:-openmrs}
OMRS_CONFIG_CONNECTION_PASSWORD: ${OPENMRS_DB_PASSWORD:-openmrs}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/openmrs"]
timeout: 5s
ports:
- 9000:8080

# MariaDB
db:
image: mariadb:10.8.2
command: "mysqld --character-set-server=utf8 --collation-server=utf8_general_ci --datadir=/openmrs-db"
environment:
MYSQL_DATABASE: openmrs
MYSQL_USER: ${OPENMRS_DB_USER:-openmrs}
MYSQL_PASSWORD: ${OPENMRS_DB_PASSWORD:-openmrs}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-openmrs}

0 comments on commit 7adf79c

Please sign in to comment.