Skip to content

Instantly share code, notes, and snippets.

@azizasm
Last active January 30, 2018 10:14
Show Gist options
  • Save azizasm/a20ed88c2ce078417d167264908f1f3d to your computer and use it in GitHub Desktop.
Save azizasm/a20ed88c2ce078417d167264908f1f3d to your computer and use it in GitHub Desktop.
Openemr dockers - play-with-docker.com
# run openemr from dockers - play-with-docker.com
# to run : http://play-with-docker.com/?stack=https://gist.githubusercontent.com/azizasm/a20ed88c2ce078417d167264908f1f3d/raw/1152b4083089cd1c8065538d81be3e58c52eaaa5/docker-compose.yml
# Use root/example as user/password credentials
version: '3.1'
services:
mysql:
restart: always
image: mysql
command: ['mysqld','--character-set-server=utf8']
environment:
MYSQL_ROOT_PASSWORD: root
openemr:
restart: always
image: openemr/openemr
ports:
- 80:80
volumes:
- logvolume01:/var/log
- sitevolume:/var/www/localhost/htdocs/openemr/sites/default
environment:
MYSQL_HOST: mysql
MYSQL_ROOT_PASS: root
MYSQL_USER: root
MYSQL_PASS: root
OE_USER: admin
OE_PASS: pass
links:
- mysql
volumes:
logvolume01: {}
sitevolume: {}
@azizasm
Copy link
Author

azizasm commented Jan 29, 2018

docker network create mynet
docker run --detach --name mysql --env "MYSQL_ROOT_PASSWORD=root" --net mynet mysql --character-set-server=utf8
docker run --detach -p 81:80 --name phpmyadmin --env "PMA_HOST=mysql" --net mynet phpmyadmin/phpmyadmin
docker run --detach -p 80:80 --name openemr --env "MYSQL_HOST=mysql" --env "MYSQL_ROOT_PASS=root" --net mynet openemr/openemr

@azizasm
Copy link
Author

azizasm commented Jan 30, 2018

To run :
Open

  1. http://play-with-docker.com/?stack=https://gist.githubusercontent.com/azizasm/a20ed88c2ce078417d167264908f1f3d/raw/docker-compose.yml
  2. Wait until fully loaded
  3. Open the link in the PDW session - 80
  4. Username / Pass : admin/pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment