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. Choose one of any of the following links:
10 # http://localhost:8080 (with Apache and PHP 7.1)
11 # http://localhost:8081 (with Apache and PHP 7.2)
12 # http://localhost:8082 (with Apache and PHP 7.1 with redis)
13 # http://localhost:8083 (with Apache and PHP 7.2 with redis)
14 # http://localhost:8090 (with Nginx and PHP-FPM 5.6)
15 # http://localhost:8091 (with Nginx and PHP-FPM 7.0)
16 # http://localhost:8092 (with Nginx and PHP-FPM 7.1)
17 # http://localhost:8093 (with Nginx and PHP-FPM 7.2)
18 # http://localhost:8094 (with Nginx and PHP-FPM 5.6 with redis)
19 # http://localhost:8095 (with Nginx and PHP-FPM 7.0 with redis)
20 # http://localhost:8096 (with Nginx and PHP-FPM 7.1 with redis)
21 # http://localhost:8097 (with Nginx and PHP-FPM 7.2 with redis)
22 # https://localhost:9080 with SSL (with Apache and PHP 7.1)
23 # https://localhost:9081 with SSL (with Apache and PHP 7.2)
24 # https://localhost:9082 with SSL (with Apache and PHP 7.1 with redis)
25 # https://localhost:9083 with SSL (with Apache and PHP 7.2 with redis)
26 # https://localhost:9090 with SSL (with Nginx and PHP-FPM 5.6)
27 # https://localhost:9091 with SSL (with Nginx and PHP-FPM 7.0)
28 # https://localhost:9092 with SSL (with Nginx and PHP-FPM 7.1)
29 # https://localhost:9093 with SSL (with Nginx and PHP-FPM 7.2)
30 # https://localhost:9094 with SSL (with Nginx and PHP-FPM 5.6 with redis)
31 # https://localhost:9095 with SSL (with Nginx and PHP-FPM 7.0 with redis)
32 # https://localhost:9096 with SSL (with Nginx and PHP-FPM 7.1 with redis)
33 # https://localhost:9097 with SSL (with Nginx and PHP-FPM 7.2 with redis)
35 # On the main setup input screen:
36 # 1. for Server Host, use either 'mariadb' or 'mysql' or `mariadb-dev` or 'mysql-dev' or 'mysql-old' or 'mysql-very-old' or 'mariadb-old' or 'mariadb-very-old' or 'mariadb-very-very-old' (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; mysql-old is version 5.6; mysql-very-old is version 5.5; mariadb is version 10.2 and mariadb-dev is version 10.3; mariadb-old is version 10.1; mariadb-very-old is version 10.0; mariadb-very-very-old is version 5.5)
37 # 2. for Root Pass, use 'root'
38 # 3. for User Hostname, use '%'
39 # And when need to tear it down and restart it
40 # 1. docker-compose down -v
41 # 2. docker-compose up -d
42 # Can see databases via http://localhost:8200
48 image: openemr/openemr:flex-3.7
53 - .:/var/www/localhost/htdocs/openemr
58 image: openemr/openemr:flex-3.8
63 - .:/var/www/localhost/htdocs/openemr
65 FORCE_NO_BUILD_MODE: "yes"
69 image: openemr/openemr:flex-3.7
74 - .:/var/www/localhost/htdocs/openemr
76 FORCE_NO_BUILD_MODE: "yes"
81 image: openemr/openemr:flex-3.8
86 - .:/var/www/localhost/htdocs/openemr
88 FORCE_NO_BUILD_MODE: "yes"
94 command: ['mysqld','--character-set-server=utf8']
96 MYSQL_ROOT_PASSWORD: root
100 command: ['mysqld','--character-set-server=utf8']
102 MYSQL_ROOT_PASSWORD: root
106 command: ['mysqld','--character-set-server=utf8']
108 MYSQL_ROOT_PASSWORD: root
112 command: ['mysqld','--character-set-server=utf8','--default-authentication-plugin=mysql_native_password']
114 MYSQL_ROOT_PASSWORD: root
118 command: ['mysqld','--character-set-server=utf8']
120 MYSQL_ROOT_PASSWORD: root
124 command: ['mysqld','--character-set-server=utf8']
126 MYSQL_ROOT_PASSWORD: root
127 mariadb-very-very-old:
130 command: ['mysqld','--character-set-server=utf8']
132 MYSQL_ROOT_PASSWORD: root
136 command: ['mysqld','--character-set-server=utf8']
138 MYSQL_ROOT_PASSWORD: root
142 command: ['mysqld','--character-set-server=utf8']
144 MYSQL_ROOT_PASSWORD: root
147 image: phpmyadmin/phpmyadmin
151 PMA_HOSTS: mariadb,mysql,mariadb-dev,mysql-dev,mysql-old,mysql-very-old,mariadb-old,mariadb-very-old,mariadb-very-very-old
160 COUCHDB_PASSWORD: password
163 image: jodogne/orthanc-plugins
169 image: openemr/dev-nginx
188 - .:/usr/share/nginx/html/openemr
189 - ./contrib/util/docker/dockers/dev-nginx/nginx.conf:/etc/nginx/nginx.conf:ro
190 - ./contrib/util/docker/dockers/dev-nginx/dummy-cert:/etc/nginx/dummy-cert:ro
191 - ./contrib/util/docker/dockers/dev-nginx/dummy-key:/etc/nginx/dummy-key:ro
197 - dev-php-fpm-5-6-redis
198 - dev-php-fpm-7-0-redis
199 - dev-php-fpm-7-1-redis
200 - dev-php-fpm-7-2-redis
203 image: openemr/dev-php-fpm:5.6
205 - .:/usr/share/nginx/html/openemr
206 - ./contrib/util/docker/dockers/dev-php-fpm-5-6/php.ini:/usr/local/etc/php/php.ini:ro
209 image: openemr/dev-php-fpm:7.0
211 - .:/usr/share/nginx/html/openemr
212 - ./contrib/util/docker/dockers/dev-php-fpm-7-0/php.ini:/usr/local/etc/php/php.ini:ro
215 image: openemr/dev-php-fpm:7.1
217 - .:/usr/share/nginx/html/openemr
218 - ./contrib/util/docker/dockers/dev-php-fpm-7-1/php.ini:/usr/local/etc/php/php.ini:ro
221 image: openemr/dev-php-fpm:7.2
223 - .:/usr/share/nginx/html/openemr
224 - ./contrib/util/docker/dockers/dev-php-fpm-7-2/php.ini:/usr/local/etc/php/php.ini:ro
225 dev-php-fpm-5-6-redis:
227 image: openemr/dev-php-fpm:5.6-redis
229 - .:/usr/share/nginx/html/openemr
230 - ./contrib/util/docker/dockers/dev-php-fpm-5-6-redis/php.ini:/usr/local/etc/php/php.ini:ro
231 dev-php-fpm-7-0-redis:
233 image: openemr/dev-php-fpm:7.0-redis
235 - .:/usr/share/nginx/html/openemr
236 - ./contrib/util/docker/dockers/dev-php-fpm-7-0-redis/php.ini:/usr/local/etc/php/php.ini:ro
237 dev-php-fpm-7-1-redis:
239 image: openemr/dev-php-fpm:7.1-redis
241 - .:/usr/share/nginx/html/openemr
242 - ./contrib/util/docker/dockers/dev-php-fpm-7-1-redis/php.ini:/usr/local/etc/php/php.ini:ro
243 dev-php-fpm-7-2-redis:
245 image: openemr/dev-php-fpm:7.2-redis
247 - .:/usr/share/nginx/html/openemr
248 - ./contrib/util/docker/dockers/dev-php-fpm-7-2-redis/php.ini:/usr/local/etc/php/php.ini:ro