another fix
[openemr.git] / docker-compose.yml
bloba764993b96c9b66b442e6d84fd1c5b59dd3ec86e
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
44 version: '3.1'
45 services:
46   openemr-7-1:
47     restart: always
48     image: openemr/openemr:flex-3.7
49     ports:
50     - 8080:80
51     - 9080:443
52     volumes:
53     - .:/var/www/localhost/htdocs/openemr
54     environment:
55       EMPTY: "yes"
56   openemr-7-2:
57     restart: always
58     image: openemr/openemr:flex-3.8
59     ports:
60     - 8081:80
61     - 9081:443
62     volumes:
63     - .:/var/www/localhost/htdocs/openemr
64     environment:
65       FORCE_NO_BUILD_MODE: "yes"
66       EMPTY: "yes"
67   openemr-7-1-redis:
68     restart: always
69     image: openemr/openemr:flex-3.7
70     ports:
71     - 8082:80
72     - 9082:443
73     volumes:
74     - .:/var/www/localhost/htdocs/openemr
75     environment:
76       FORCE_NO_BUILD_MODE: "yes"
77       REDIS_SERVER: "redis"
78       EMPTY: "yes"
79   openemr-7-2-redis:
80     restart: always
81     image: openemr/openemr:flex-3.8
82     ports:
83     - 8083:80
84     - 9083:443
85     volumes:
86     - .:/var/www/localhost/htdocs/openemr
87     environment:
88       FORCE_NO_BUILD_MODE: "yes"
89       REDIS_SERVER: "redis"
90       EMPTY: "yes"
91   mariadb:
92     restart: always
93     image: mariadb:10.2
94     command: ['mysqld','--character-set-server=utf8']
95     environment:
96       MYSQL_ROOT_PASSWORD: root
97   mysql:
98     restart: always
99     image: mysql:5.7
100     command: ['mysqld','--character-set-server=utf8']
101     environment:
102       MYSQL_ROOT_PASSWORD: root
103   mariadb-dev:
104     restart: always
105     image: mariadb:10.3
106     command: ['mysqld','--character-set-server=utf8']
107     environment:
108       MYSQL_ROOT_PASSWORD: root
109   mysql-dev:
110     restart: always
111     image: mysql:8
112     command: ['mysqld','--character-set-server=utf8','--default-authentication-plugin=mysql_native_password']
113     environment:
114       MYSQL_ROOT_PASSWORD: root
115   mariadb-old:
116     restart: always
117     image: mariadb:10.1
118     command: ['mysqld','--character-set-server=utf8']
119     environment:
120       MYSQL_ROOT_PASSWORD: root
121   mariadb-very-old:
122     restart: always
123     image: mariadb:10.0
124     command: ['mysqld','--character-set-server=utf8']
125     environment:
126       MYSQL_ROOT_PASSWORD: root
127   mariadb-very-very-old:
128     restart: always
129     image: mariadb:5.5
130     command: ['mysqld','--character-set-server=utf8']
131     environment:
132       MYSQL_ROOT_PASSWORD: root
133   mysql-old:
134     restart: always
135     image: mysql:5.6
136     command: ['mysqld','--character-set-server=utf8']
137     environment:
138       MYSQL_ROOT_PASSWORD: root
139   mysql-very-old:
140     restart: always
141     image: mysql:5.5
142     command: ['mysqld','--character-set-server=utf8']
143     environment:
144       MYSQL_ROOT_PASSWORD: root
145   phpmyadmin:
146     restart: always
147     image: phpmyadmin/phpmyadmin
148     ports:
149     - 8200:80
150     environment:
151       PMA_HOSTS: mariadb,mysql,mariadb-dev,mysql-dev,mysql-old,mysql-very-old,mariadb-old,mariadb-very-old,mariadb-very-very-old
152   couchdb:
153     restart: always
154     image: couchdb
155     ports:
156     - 5984:5984
157     - 6984:6984
158     environment:
159       COUCHDB_USER: admin
160       COUCHDB_PASSWORD: password
161   orthanc:
162     restart: always
163     image: jodogne/orthanc-plugins
164     ports:
165     - 4242:4242
166     - 8042:8042
167   nginx:
168     restart: always
169     image: openemr/dev-nginx
170     ports:
171     - 8090:80
172     - 9090:443
173     - 8091:81
174     - 9091:444
175     - 8092:82
176     - 9092:445
177     - 8093:83
178     - 9093:446
179     - 8094:84
180     - 9094:447
181     - 8095:85
182     - 9095:448
183     - 8096:86
184     - 9096:449
185     - 8097:87
186     - 9097:450
187     volumes:
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
192     depends_on:
193     - dev-php-fpm-5-6
194     - dev-php-fpm-7-0
195     - dev-php-fpm-7-1
196     - dev-php-fpm-7-2
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
201   dev-php-fpm-5-6:
202     restart: always
203     image: openemr/dev-php-fpm:5.6
204     volumes:
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
207   dev-php-fpm-7-0:
208     restart: always
209     image: openemr/dev-php-fpm:7.0
210     volumes:
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
213   dev-php-fpm-7-1:
214     restart: always
215     image: openemr/dev-php-fpm:7.1
216     volumes:
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
219   dev-php-fpm-7-2:
220     restart: always
221     image: openemr/dev-php-fpm:7.2
222     volumes:
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:
226     restart: always
227     image: openemr/dev-php-fpm:5.6-redis
228     volumes:
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:
232     restart: always
233     image: openemr/dev-php-fpm:7.0-redis
234     volumes:
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:
238     restart: always
239     image: openemr/dev-php-fpm:7.1-redis
240     volumes:
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:
244     restart: always
245     image: openemr/dev-php-fpm:7.2-redis
246     volumes:
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
249   redis:
250     restart: always
251     image: redis