Drag and resize help modal using jquery-ui (#1712)
[openemr.git] / docker-compose.yml
blob3ab6958acba577c96f170b70c9cbf494caf986bf
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 Apache and PHP 7.1)
10 #      or
11 #      https://localhost:8090 to run setup in openemr with SSL (alpine 3.7 with Apache and PHP 7.1)
12 #      or
13 #      http://localhost:8081 to run setup in openemr (alpine edge with Apache and PHP 7.2)
14 #      or
15 #      https://localhost:8091 to run setup in openemr with SSL (alpine edge with Apache and PHP 7.2)
16 #      or
17 #      http://localhost:8085 to run setup in openemr (Nginx with php-fpm PHP 7.1)
18 #      or
19 #      https://localhost:8095 to run setup in openemr with SSL (Nginx with php-fpm PHP 7.1) EXPERIMENTAL - NOT YET WORKING
20 #      or
21 #      http://localhost:8086 to run setup in openemr (Nginx with php-fpm PHP 7.2)
22 #      or
23 #      https://localhost:8096 to run setup in openemr with SSL (Nginx with php-fpm PHP 7.2) EXPERIMENTAL - NOT YET WORKING
24 #  On the main setup input screen:
25 #   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)
26 #   2. for Root Pass, use 'root'
27 #   3. for User Hostname, use '%'
28 #  And when need to tear it down and restart it
29 #   1. docker-compose down -v
30 #   2. docker-compose up -d
31 #  Can see databases via http://localhost:8100
33 version: '3.1'
34 services:
35   openemr-7-1:
36     restart: always
37     image: openemr/openemr:flex
38     ports:
39     - 8080:80
40     - 8090:443
41     volumes:
42     - .:/var/www/localhost/htdocs/openemr
43     environment:
44       EMPTY: "yes"
45   openemr-7-2:
46     restart: always
47     image: openemr/openemr:flex-edge
48     ports:
49     - 8081:80
50     - 8091:443
51     volumes:
52     - .:/var/www/localhost/htdocs/openemr
53     environment:
54       EMPTY: "yes"
55   mariadb:
56     restart: always
57     image: mariadb:10.2
58     command: ['mysqld','--character-set-server=utf8']
59     environment:
60       MYSQL_ROOT_PASSWORD: root
61   mysql:
62     restart: always
63     image: mysql:5.7
64     command: ['mysqld','--character-set-server=utf8']
65     environment:
66       MYSQL_ROOT_PASSWORD: root
67   mariadb-dev:
68     restart: always
69     image: mariadb:10.3
70     command: ['mysqld','--character-set-server=utf8']
71     environment:
72       MYSQL_ROOT_PASSWORD: root
73   mysql-dev:
74     restart: always
75     image: mysql:8
76     command: ['mysqld','--character-set-server=utf8','--default-authentication-plugin=mysql_native_password']
77     environment:
78       MYSQL_ROOT_PASSWORD: root
79   mariadb-old:
80     restart: always
81     image: mariadb:10.1
82     command: ['mysqld','--character-set-server=utf8']
83     environment:
84       MYSQL_ROOT_PASSWORD: root
85   mariadb-very-old:
86     restart: always
87     image: mariadb:10.0
88     command: ['mysqld','--character-set-server=utf8']
89     environment:
90       MYSQL_ROOT_PASSWORD: root
91   mariadb-very-very-old:
92     restart: always
93     image: mariadb:5.5
94     command: ['mysqld','--character-set-server=utf8']
95     environment:
96       MYSQL_ROOT_PASSWORD: root
97   mysql-old:
98     restart: always
99     image: mysql:5.6
100     command: ['mysqld','--character-set-server=utf8']
101     environment:
102       MYSQL_ROOT_PASSWORD: root
103   mysql-very-old:
104     restart: always
105     image: mysql:5.5
106     command: ['mysqld','--character-set-server=utf8']
107     environment:
108       MYSQL_ROOT_PASSWORD: root
109   phpmyadmin:
110     restart: always
111     image: phpmyadmin/phpmyadmin
112     ports:
113     - 8100:80
114     environment:
115       PMA_HOSTS: mariadb,mysql,mariadb-dev,mysql-dev,mysql-old,mysql-very-old,mariadb-old,mariadb-very-old,mariadb-very-very-old
116   couchdb:
117     restart: always
118     image: couchdb
119     ports:
120     - 5984:5984
121     - 6984:6984
122     environment:
123       COUCHDB_USER: admin
124       COUCHDB_PASSWORD: password
125   orthanc:
126     restart: always
127     image: jodogne/orthanc-plugins
128     ports:
129     - 4242:4242
130     - 8042:8042
131   nginx:
132     restart: always
133     image: openemr/dev-nginx
134     ports:
135     - 8085:80
136     - 8095:443
137     - 8086:81
138     - 8096:444
139     volumes:
140     - .:/usr/share/nginx/html/openemr
141     - ./contrib/util/docker/dockers/dev-nginx/nginx.conf:/etc/nginx/nginx.conf:ro
142     depends_on:
143     - dev-php-fpm-7-1
144     - dev-php-fpm-7-2
145   dev-php-fpm-7-1:
146     restart: always
147     image: openemr/dev-php-fpm:7.1
148     volumes:
149     - .:/usr/share/nginx/html/openemr
150     - ./contrib/util/docker/dockers/dev-php-fpm-7-1/php.ini:/usr/local/etc/php/php.ini:ro
151   dev-php-fpm-7-2:
152     restart: always
153     image: openemr/dev-php-fpm:7.2
154     volumes:
155     - .:/usr/share/nginx/html/openemr
156     - ./contrib/util/docker/dockers/dev-php-fpm-7-2/php.ini:/usr/local/etc/php/php.ini:ro