Skip to content

Instantly share code, notes, and snippets.

@brunocarvalhodearaujo
Last active January 24, 2020 21:56
Show Gist options
  • Save brunocarvalhodearaujo/0807c074e812f4d2a0599644e5389d61 to your computer and use it in GitHub Desktop.
Save brunocarvalhodearaujo/0807c074e812f4d2a0599644e5389d61 to your computer and use it in GitHub Desktop.
Mirth Connect docker-compose
version: '3.7'
services:
# https://hub.docker.com/_/postgres
postgres:
image: postgres:12-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=mirthdb
- POSTGRES_PASSWORD=mirthdb
- POSTGRES_DB=mirthdb
volumes:
- postgresql-data:/var/lib/postgresql/data
networks:
- external
# https://hub.docker.com/r/nextgenhealthcare/connect
mirth:
image: nextgenhealthcare/connect:3.8.1
user: root
restart: unless-stopped
environment:
- DATABASE=postgres
- DATABASE_URL=jdbc:postgresql://postgres:5432/mirthdb
- DATABASE_MAX_CONNECTIONS=20
- DATABASE_USERNAME=mirthdb
- DATABASE_PASSWORD=mirthdb
- KEYSTORE_STOREPASS=docker_storepass
- KEYSTORE_KEYPASS=docker_keypass
- SESSION_STORE=true
- VMOPTIONS=-Xmx512m
- DELAY=10
- TCP_PORTS=8080,8443,9001
networks:
- external
depends_on:
- postgres
volumes:
- mirth-data:/opt/connect/appdata
- mirth-logs:/opt/connect/logs
- $PWD/custom-extensions:/opt/connect/custom-extensions
- $PWD/conf:/opt/mirthconnect/conf
secrets:
- mirth_properties
- mcserver_vmoptions
expose:
- 8080
- 8443
- 9001
haproxy:
image: dockercloud/haproxy:latest
restart: unless-stopped
ports:
- 80:80
- 8080:8080
- 8443:8443
- 9001:9001
networks:
- external
volumes:
- /var/run/docker.sock:/var/run/docker.sock
links:
- mirth
secrets:
mirth_properties:
file: $PWD/secret.properties
mcserver_vmoptions:
file: $PWD/secret.vmoptions
volumes:
postgresql-data:
mirth-data:
mirth-logs:
networks:
external:
driver: bridge
keystore.storepass = docker_storepass
keystore.keypass = docker_keypass
-Dmy.secret.property=thepassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment