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