Merge pull request #1650 from bradymiller/docker-dev-env_2
[openemr.git] / docker-compose.yml
blob5ba2c64e02343577c48065d284e4c483681754bf
2 # This is for building a local OpenEMR development and testing environment.
3 # (Recommend not running it from your git repo and instead mirroring your
4 #  git repo to a testing directory (such as your web directory).)
6 # Brief instructions on how to use (for fuller instructions and examples,
7 #  see the document at contrib/util/docker/README.md):
8 #   1. docker-compose up -d
9 #   2. http://localhost:8080 to run setup in openemr (alpine 3.7 with PHP 7.1)
10 #      or
11 #      https://localhost:8090 to run setup in openemr with SSL (alpine 3.7 with PHP 7.1)
12 #      or
13 #      http://localhost:8081 to run setup in openemr (alpine edge with PHP 7.2)
14 #      or
15 #      https://localhost:8091 to run setup in openemr with SSL (alpine edge with PHP 7.2)
16 #  On the main setup input screen:
17 #   1. for Server Host, use either 'mariadb' or 'mysql' or `mariadb-dev` or 'mysql-dev' (have both mariadb/mysql/mariadb-dev/mysql-dev dockers ready to go make testing either one easy; mysql is version 5.7; mysql-dev is version 8; mariadb is version 10.2 and mariadb-dev is version 10.3)
18 #   2. for Root Pass, use 'root'
19 #   3. for User Hostname, use '%'
20 #  And when need to tear it down and restart it
21 #   1. docker-compose down -v
22 #   2. docker-compose up -d
23 #  Can see databases via http://localhost:8100
25 version: '3.1'
26 services:
27   openemr-7-1:
28     restart: always
29     image: openemr/openemr:flex
30     ports:
31     - 8080:80
32     - 8090:443
33     volumes:
34     - .:/var/www/localhost/htdocs/openemr
35     environment:
36       EMPTY: "yes"
37   openemr-7-2:
38     restart: always
39     image: openemr/openemr:flex-edge
40     ports:
41     - 8081:80
42     - 8091:443
43     volumes:
44     - .:/var/www/localhost/htdocs/openemr
45     environment:
46       EMPTY: "yes"
47   mariadb:
48     restart: always
49     image: mariadb:10.2
50     command: ['mysqld','--character-set-server=utf8']
51     environment:
52       MYSQL_ROOT_PASSWORD: root
53   mysql:
54     restart: always
55     image: mysql:5.7
56     command: ['mysqld','--character-set-server=utf8']
57     environment:
58       MYSQL_ROOT_PASSWORD: root
59   mariadb-dev:
60     restart: always
61     image: mariadb:10.3
62     command: ['mysqld','--character-set-server=utf8']
63     environment:
64       MYSQL_ROOT_PASSWORD: root
65   mysql-dev:
66     restart: always
67     image: mysql:8
68     command: ['mysqld','--character-set-server=utf8','--default-authentication-plugin=mysql_native_password']
69     environment:
70       MYSQL_ROOT_PASSWORD: root
71   phpmyadmin:
72     restart: always
73     image: phpmyadmin/phpmyadmin
74     ports:
75     - 8100:80
76     environment:
77       PMA_HOSTS: mariadb,mysql,mariadb-dev,mysql-dev
78   couchdb:
79     restart: always
80     image: couchdb
81     ports:
82     - 5984:5984
83     - 6984:6984
84     environment:
85       COUCHDB_USER: admin
86       COUCHDB_PASSWORD: password
87   orthanc:
88     restart: always
89     image: jodogne/orthanc-plugins
90     ports:
91     - 4242:4242
92     - 8042:8042