minor bug fix in patient transactions (#1830)
[openemr.git] / docker-compose.yml
blobd534deabd0a886861a64c1d562cc68b4ccbb2328
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 7.3)
19 #        http://localhost:8095 (with Nginx and PHP-FPM 5.6 with redis)
20 #        http://localhost:8096 (with Nginx and PHP-FPM 7.0 with redis)
21 #        http://localhost:8097 (with Nginx and PHP-FPM 7.1 with redis)
22 #        http://localhost:8098 (with Nginx and PHP-FPM 7.2 with redis)
23 #        http://localhost:8099 (with Nginx and PHP-FPM 7.3 with redis)
24 #        https://localhost:9080 with SSL (with Apache and PHP 7.1)
25 #        https://localhost:9081 with SSL (with Apache and PHP 7.2)
26 #        https://localhost:9082 with SSL (with Apache and PHP 7.1 with redis)
27 #        https://localhost:9083 with SSL (with Apache and PHP 7.2 with redis)
28 #        https://localhost:9090 with SSL (with Nginx and PHP-FPM 5.6)
29 #        https://localhost:9091 with SSL (with Nginx and PHP-FPM 7.0)
30 #        https://localhost:9092 with SSL (with Nginx and PHP-FPM 7.1)
31 #        https://localhost:9093 with SSL (with Nginx and PHP-FPM 7.2)
32 #        https://localhost:9094 with SSL (with Nginx and PHP-FPM 7.3)
33 #        https://localhost:9095 with SSL (with Nginx and PHP-FPM 5.6 with redis)
34 #        https://localhost:9096 with SSL (with Nginx and PHP-FPM 7.0 with redis)
35 #        https://localhost:9097 with SSL (with Nginx and PHP-FPM 7.1 with redis)
36 #        https://localhost:9098 with SSL (with Nginx and PHP-FPM 7.2 with redis)
37 #        https://localhost:9099 with SSL (with Nginx and PHP-FPM 7.3 with redis)
39 #    On the main setup input screen:
40 #     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)
41 #     2. for Root Pass, use 'root'
42 #     3. for User Hostname, use '%'
43 #    And when need to tear it down and restart it
44 #     1. docker-compose down -v
45 #     2. docker-compose up -d
46 #    Can see databases via http://localhost:8200
48 version: '3.1'
49 services:
50   openemr-7-1:
51     restart: always
52     image: openemr/openemr:flex-3.7
53     ports:
54     - 8080:80
55     - 9080:443
56     volumes:
57     - .:/var/www/localhost/htdocs/openemr
58     environment:
59       EMPTY: "yes"
60   openemr-7-2:
61     restart: always
62     image: openemr/openemr:flex-3.8
63     ports:
64     - 8081:80
65     - 9081:443
66     volumes:
67     - .:/var/www/localhost/htdocs/openemr
68     environment:
69       FORCE_NO_BUILD_MODE: "yes"
70       EMPTY: "yes"
71   openemr-7-1-redis:
72     restart: always
73     image: openemr/openemr:flex-3.7
74     ports:
75     - 8082:80
76     - 9082:443
77     volumes:
78     - .:/var/www/localhost/htdocs/openemr
79     environment:
80       FORCE_NO_BUILD_MODE: "yes"
81       REDIS_SERVER: "redis"
82       EMPTY: "yes"
83   openemr-7-2-redis:
84     restart: always
85     image: openemr/openemr:flex-3.8
86     ports:
87     - 8083:80
88     - 9083:443
89     volumes:
90     - .:/var/www/localhost/htdocs/openemr
91     environment:
92       FORCE_NO_BUILD_MODE: "yes"
93       REDIS_SERVER: "redis"
94       EMPTY: "yes"
95   mariadb:
96     restart: always
97     image: mariadb:10.2
98     command: ['mysqld','--character-set-server=utf8']
99     environment:
100       MYSQL_ROOT_PASSWORD: root
101   mysql:
102     restart: always
103     image: mysql:5.7
104     command: ['mysqld','--character-set-server=utf8']
105     environment:
106       MYSQL_ROOT_PASSWORD: root
107   mariadb-dev:
108     restart: always
109     image: mariadb:10.3
110     command: ['mysqld','--character-set-server=utf8']
111     environment:
112       MYSQL_ROOT_PASSWORD: root
113   mysql-dev:
114     restart: always
115     image: mysql:8
116     command: ['mysqld','--character-set-server=utf8','--default-authentication-plugin=mysql_native_password']
117     environment:
118       MYSQL_ROOT_PASSWORD: root
119   mariadb-old:
120     restart: always
121     image: mariadb:10.1
122     command: ['mysqld','--character-set-server=utf8']
123     environment:
124       MYSQL_ROOT_PASSWORD: root
125   mariadb-very-old:
126     restart: always
127     image: mariadb:10.0
128     command: ['mysqld','--character-set-server=utf8']
129     environment:
130       MYSQL_ROOT_PASSWORD: root
131   mariadb-very-very-old:
132     restart: always
133     image: mariadb:5.5
134     command: ['mysqld','--character-set-server=utf8']
135     environment:
136       MYSQL_ROOT_PASSWORD: root
137   mysql-old:
138     restart: always
139     image: mysql:5.6
140     command: ['mysqld','--character-set-server=utf8']
141     environment:
142       MYSQL_ROOT_PASSWORD: root
143   mysql-very-old:
144     restart: always
145     image: mysql:5.5
146     command: ['mysqld','--character-set-server=utf8']
147     environment:
148       MYSQL_ROOT_PASSWORD: root
149   phpmyadmin:
150     restart: always
151     image: phpmyadmin/phpmyadmin
152     ports:
153     - 8200:80
154     environment:
155       PMA_HOSTS: mariadb,mysql,mariadb-dev,mysql-dev,mysql-old,mysql-very-old,mariadb-old,mariadb-very-old,mariadb-very-very-old
156   couchdb:
157     restart: always
158     image: couchdb
159     ports:
160     - 5984:5984
161     - 6984:6984
162     environment:
163       COUCHDB_USER: admin
164       COUCHDB_PASSWORD: password
165   orthanc:
166     restart: always
167     image: jodogne/orthanc-plugins
168     ports:
169     - 4242:4242
170     - 8042:8042
171   nginx:
172     restart: always
173     image: openemr/dev-nginx
174     ports:
175     - 8090:80
176     - 9090:443
177     - 8091:81
178     - 9091:444
179     - 8092:82
180     - 9092:445
181     - 8093:83
182     - 9093:446
183     - 8094:84
184     - 9094:447
185     - 8095:85
186     - 9095:448
187     - 8096:86
188     - 9096:449
189     - 8097:87
190     - 9097:450
191     - 8098:88
192     - 9098:451
193     - 8099:89
194     - 9099:452
195     volumes:
196     - .:/usr/share/nginx/html/openemr
197     - ./contrib/util/docker/dockers/dev-nginx/nginx.conf:/etc/nginx/nginx.conf:ro
198     - ./contrib/util/docker/dockers/dev-nginx/dummy-cert:/etc/nginx/dummy-cert:ro
199     - ./contrib/util/docker/dockers/dev-nginx/dummy-key:/etc/nginx/dummy-key:ro
200     depends_on:
201     - dev-php-fpm-5-6
202     - dev-php-fpm-7-0
203     - dev-php-fpm-7-1
204     - dev-php-fpm-7-2
205     - dev-php-fpm-7-3
206     - dev-php-fpm-5-6-redis
207     - dev-php-fpm-7-0-redis
208     - dev-php-fpm-7-1-redis
209     - dev-php-fpm-7-2-redis
210     - dev-php-fpm-7-3-redis
211   dev-php-fpm-5-6:
212     restart: always
213     image: openemr/dev-php-fpm:5.6
214     volumes:
215     - .:/usr/share/nginx/html/openemr
216     - ./contrib/util/docker/dockers/dev-php-fpm-5-6/php.ini:/usr/local/etc/php/php.ini:ro
217   dev-php-fpm-7-0:
218     restart: always
219     image: openemr/dev-php-fpm:7.0
220     volumes:
221     - .:/usr/share/nginx/html/openemr
222     - ./contrib/util/docker/dockers/dev-php-fpm-7-0/php.ini:/usr/local/etc/php/php.ini:ro
223   dev-php-fpm-7-1:
224     restart: always
225     image: openemr/dev-php-fpm:7.1
226     volumes:
227     - .:/usr/share/nginx/html/openemr
228     - ./contrib/util/docker/dockers/dev-php-fpm-7-1/php.ini:/usr/local/etc/php/php.ini:ro
229   dev-php-fpm-7-2:
230     restart: always
231     image: openemr/dev-php-fpm:7.2
232     volumes:
233     - .:/usr/share/nginx/html/openemr
234     - ./contrib/util/docker/dockers/dev-php-fpm-7-2/php.ini:/usr/local/etc/php/php.ini:ro
235   dev-php-fpm-7-3:
236     restart: always
237     image: openemr/dev-php-fpm:7.3
238     volumes:
239     - .:/usr/share/nginx/html/openemr
240     - ./contrib/util/docker/dockers/dev-php-fpm-7-3/php.ini:/usr/local/etc/php/php.ini:ro
241   dev-php-fpm-5-6-redis:
242     restart: always
243     image: openemr/dev-php-fpm:5.6-redis
244     volumes:
245     - .:/usr/share/nginx/html/openemr
246     - ./contrib/util/docker/dockers/dev-php-fpm-5-6-redis/php.ini:/usr/local/etc/php/php.ini:ro
247   dev-php-fpm-7-0-redis:
248     restart: always
249     image: openemr/dev-php-fpm:7.0-redis
250     volumes:
251     - .:/usr/share/nginx/html/openemr
252     - ./contrib/util/docker/dockers/dev-php-fpm-7-0-redis/php.ini:/usr/local/etc/php/php.ini:ro
253   dev-php-fpm-7-1-redis:
254     restart: always
255     image: openemr/dev-php-fpm:7.1-redis
256     volumes:
257     - .:/usr/share/nginx/html/openemr
258     - ./contrib/util/docker/dockers/dev-php-fpm-7-1-redis/php.ini:/usr/local/etc/php/php.ini:ro
259   dev-php-fpm-7-2-redis:
260     restart: always
261     image: openemr/dev-php-fpm:7.2-redis
262     volumes:
263     - .:/usr/share/nginx/html/openemr
264     - ./contrib/util/docker/dockers/dev-php-fpm-7-2-redis/php.ini:/usr/local/etc/php/php.ini:ro
265   dev-php-fpm-7-3-redis:
266     restart: always
267     image: openemr/dev-php-fpm:7.3-redis
268     volumes:
269     - .:/usr/share/nginx/html/openemr
270     - ./contrib/util/docker/dockers/dev-php-fpm-7-3-redis/php.ini:/usr/local/etc/php/php.ini:ro
271   redis:
272     restart: always
273     image: redis