3 # This is for building a local OpenEMR development and testing environment.
4 # (Recommend not running it from your git repo and instead mirroring your
5 # git repo to a testing directory (such as your web directory).)
7 # Brief instructions on how to use (for fuller instructions and examples,
8 # see the document at contrib/util/docker/README.md):
9 # 1. go to contrib/util/docker directory
10 # 2. docker-compose up -d
11 # 3. Choose one of any of the following links:
12 # http://localhost:8080 (with Apache and PHP 7.1)
13 # http://localhost:8081 (with Apache and PHP 7.2)
14 # http://localhost:8082 (with Apache and PHP 7.1 with redis)
15 # http://localhost:8083 (with Apache and PHP 7.2 with redis)
16 # http://localhost:8090 (with Nginx and PHP-FPM 5.6)
17 # http://localhost:8091 (with Nginx and PHP-FPM 7.0)
18 # http://localhost:8092 (with Nginx and PHP-FPM 7.1)
19 # http://localhost:8093 (with Nginx and PHP-FPM 7.2)
20 # http://localhost:8094 (with Nginx and PHP-FPM 7.3)
21 # http://localhost:8095 (with Nginx and PHP-FPM 5.6 with redis)
22 # http://localhost:8096 (with Nginx and PHP-FPM 7.0 with redis)
23 # http://localhost:8097 (with Nginx and PHP-FPM 7.1 with redis)
24 # http://localhost:8098 (with Nginx and PHP-FPM 7.2 with redis)
25 # http://localhost:8099 (with Nginx and PHP-FPM 7.3 with redis)
26 # https://localhost:9080 with SSL (with Apache and PHP 7.1)
27 # https://localhost:9081 with SSL (with Apache and PHP 7.2)
28 # https://localhost:9082 with SSL (with Apache and PHP 7.1 with redis)
29 # https://localhost:9083 with SSL (with Apache and PHP 7.2 with redis)
30 # https://localhost:9090 with SSL (with Nginx and PHP-FPM 5.6)
31 # https://localhost:9091 with SSL (with Nginx and PHP-FPM 7.0)
32 # https://localhost:9092 with SSL (with Nginx and PHP-FPM 7.1)
33 # https://localhost:9093 with SSL (with Nginx and PHP-FPM 7.2)
34 # https://localhost:9094 with SSL (with Nginx and PHP-FPM 7.3)
35 # https://localhost:9095 with SSL (with Nginx and PHP-FPM 5.6 with redis)
36 # https://localhost:9096 with SSL (with Nginx and PHP-FPM 7.0 with redis)
37 # https://localhost:9097 with SSL (with Nginx and PHP-FPM 7.1 with redis)
38 # https://localhost:9098 with SSL (with Nginx and PHP-FPM 7.2 with redis)
39 # https://localhost:9099 with SSL (with Nginx and PHP-FPM 7.3 with redis)
41 # On the main setup input screen:
42 # 1. for Server Host, use either 'mariadb' or 'mysql' or `mariadb-dev` or 'mysql-old' or 'mysql-very-old' or 'mysql-very-very-old' or 'mariadb-old' or 'mariadb-very-old' or 'mariadb-very-very-old' or 'mariadb-very-very-very-old' (have both mariadb/mysql/mariadb-dev/mysql dockers ready to go make testing either one easy; mysql is version 8.0; mysql-old is version 5.7; mysql-old-old is version 5.6; mysql-very-very-old is version 5.5; mariadb is version 10.3 and mariadb-dev is version 10.4; mariadb-old is version 10.2; mariadb-very-old is version 10.1; mariadb-very-very-old is version 10.0; mariadb-very-very-very-old is version 5.5)
43 # 2. for Root Pass, use 'root'
44 # 3. for User Hostname, use '%'
45 # And when need to tear it down and restart it
46 # 1. docker-compose down -v
47 # 2. docker-compose up -d
48 # Can see databases via http://localhost:8200
54 image: openemr/openemr:flex-3.7
59 - ../../..:/var/www/localhost/htdocs/openemr
64 image: openemr/openemr:flex-3.8
69 - ../../..:/var/www/localhost/htdocs/openemr
71 FORCE_NO_BUILD_MODE: "yes"
75 image: openemr/openemr:flex-3.7
80 - ../../..:/var/www/localhost/htdocs/openemr
82 FORCE_NO_BUILD_MODE: "yes"
87 image: openemr/openemr:flex-3.8
92 - ../../..:/var/www/localhost/htdocs/openemr
94 FORCE_NO_BUILD_MODE: "yes"
100 command: ['mysqld','--character-set-server=utf8']
102 MYSQL_ROOT_PASSWORD: root
106 command: ['mysqld','--character-set-server=utf8']
110 MYSQL_ROOT_PASSWORD: root
114 command: ['mysqld','--character-set-server=utf8']
116 MYSQL_ROOT_PASSWORD: root
120 command: ['mysqld','--character-set-server=utf8']
122 MYSQL_ROOT_PASSWORD: root
123 mariadb-very-very-old:
126 command: ['mysqld','--character-set-server=utf8']
128 MYSQL_ROOT_PASSWORD: root
129 mariadb-very-very-very-old:
132 command: ['mysqld','--character-set-server=utf8']
134 MYSQL_ROOT_PASSWORD: root
138 command: ['mysqld','--character-set-server=utf8','--default-authentication-plugin=mysql_native_password']
142 MYSQL_ROOT_PASSWORD: root
146 command: ['mysqld','--character-set-server=utf8']
148 MYSQL_ROOT_PASSWORD: root
152 command: ['mysqld','--character-set-server=utf8']
154 MYSQL_ROOT_PASSWORD: root
158 command: ['mysqld','--character-set-server=utf8']
160 MYSQL_ROOT_PASSWORD: root
163 image: phpmyadmin/phpmyadmin
167 PMA_HOSTS: mariadb-dev,mariadb,mariadb-old,mariadb-very-old,mariadb-very-very-old,mariadb-very-very-very-old,mysql,mysql-old,mysql-very-old,mysql-very-very-old
176 COUCHDB_PASSWORD: password
179 image: jodogne/orthanc-plugins
185 image: openemr/dev-nginx
208 - ../../..:/usr/share/nginx/html/openemr
209 - ./dockers/dev-nginx/nginx.conf:/etc/nginx/nginx.conf:ro
210 - ./dockers/dev-nginx/dummy-cert:/etc/nginx/dummy-cert:ro
211 - ./dockers/dev-nginx/dummy-key:/etc/nginx/dummy-key:ro
218 - dev-php-fpm-5-6-redis
219 - dev-php-fpm-7-0-redis
220 - dev-php-fpm-7-1-redis
221 - dev-php-fpm-7-2-redis
222 - dev-php-fpm-7-3-redis
225 image: openemr/dev-php-fpm:5.6
227 - ../../..:/usr/share/nginx/html/openemr
228 - ./dockers/dev-php-fpm-5-6/php.ini:/usr/local/etc/php/php.ini:ro
231 image: openemr/dev-php-fpm:7.0
233 - ../../..:/usr/share/nginx/html/openemr
234 - ./dockers/dev-php-fpm-7-0/php.ini:/usr/local/etc/php/php.ini:ro
237 image: openemr/dev-php-fpm:7.1
239 - ../../..:/usr/share/nginx/html/openemr
240 - ./dockers/dev-php-fpm-7-1/php.ini:/usr/local/etc/php/php.ini:ro
243 image: openemr/dev-php-fpm:7.2
245 - ../../..:/usr/share/nginx/html/openemr
246 - ./dockers/dev-php-fpm-7-2/php.ini:/usr/local/etc/php/php.ini:ro
249 image: openemr/dev-php-fpm:7.3
251 - ../../..:/usr/share/nginx/html/openemr
252 - ./dockers/dev-php-fpm-7-3/php.ini:/usr/local/etc/php/php.ini:ro
253 dev-php-fpm-5-6-redis:
255 image: openemr/dev-php-fpm:5.6-redis
257 - ../../..:/usr/share/nginx/html/openemr
258 - ./dockers/dev-php-fpm-5-6-redis/php.ini:/usr/local/etc/php/php.ini:ro
259 dev-php-fpm-7-0-redis:
261 image: openemr/dev-php-fpm:7.0-redis
263 - ../../..:/usr/share/nginx/html/openemr
264 - ./dockers/dev-php-fpm-7-0-redis/php.ini:/usr/local/etc/php/php.ini:ro
265 dev-php-fpm-7-1-redis:
267 image: openemr/dev-php-fpm:7.1-redis
269 - ../../..:/usr/share/nginx/html/openemr
270 - ./dockers/dev-php-fpm-7-1-redis/php.ini:/usr/local/etc/php/php.ini:ro
271 dev-php-fpm-7-2-redis:
273 image: openemr/dev-php-fpm:7.2-redis
275 - ../../..:/usr/share/nginx/html/openemr
276 - ./dockers/dev-php-fpm-7-2-redis/php.ini:/usr/local/etc/php/php.ini:ro
277 dev-php-fpm-7-3-redis:
279 image: openemr/dev-php-fpm:7.3-redis
281 - ../../..:/usr/share/nginx/html/openemr
282 - ./dockers/dev-php-fpm-7-3-redis/php.ini:/usr/local/etc/php/php.ini:ro