forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New build docs and new easy development docker environment (openemr#1837
- Loading branch information
1 parent
77ad0dd
commit 7657a73
Showing
8 changed files
with
3,693 additions
and
3,805 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,274 @@ | ||
|
||
# | ||
# This is for building a local OpenEMR development and testing environment. | ||
# (Recommend not running it from your git repo and instead mirroring your | ||
# git repo to a testing directory (such as your web directory).) | ||
# | ||
# Brief instructions on how to use (for fuller instructions and examples, | ||
# see the document at contrib/util/docker/README.md): | ||
# 1. docker-compose up -d | ||
# 2. Choose one of any of the following links: | ||
# http:https://localhost:8080 (with Apache and PHP 7.1) | ||
# http:https://localhost:8081 (with Apache and PHP 7.2) | ||
# http:https://localhost:8082 (with Apache and PHP 7.1 with redis) | ||
# http:https://localhost:8083 (with Apache and PHP 7.2 with redis) | ||
# http:https://localhost:8090 (with Nginx and PHP-FPM 5.6) | ||
# http:https://localhost:8091 (with Nginx and PHP-FPM 7.0) | ||
# http:https://localhost:8092 (with Nginx and PHP-FPM 7.1) | ||
# http:https://localhost:8093 (with Nginx and PHP-FPM 7.2) | ||
# http:https://localhost:8094 (with Nginx and PHP-FPM 7.3) | ||
# http:https://localhost:8095 (with Nginx and PHP-FPM 5.6 with redis) | ||
# http:https://localhost:8096 (with Nginx and PHP-FPM 7.0 with redis) | ||
# http:https://localhost:8097 (with Nginx and PHP-FPM 7.1 with redis) | ||
# http:https://localhost:8098 (with Nginx and PHP-FPM 7.2 with redis) | ||
# http:https://localhost:8099 (with Nginx and PHP-FPM 7.3 with redis) | ||
# https://localhost:9080 with SSL (with Apache and PHP 7.1) | ||
# https://localhost:9081 with SSL (with Apache and PHP 7.2) | ||
# https://localhost:9082 with SSL (with Apache and PHP 7.1 with redis) | ||
# https://localhost:9083 with SSL (with Apache and PHP 7.2 with redis) | ||
# https://localhost:9090 with SSL (with Nginx and PHP-FPM 5.6) | ||
# https://localhost:9091 with SSL (with Nginx and PHP-FPM 7.0) | ||
# https://localhost:9092 with SSL (with Nginx and PHP-FPM 7.1) | ||
# https://localhost:9093 with SSL (with Nginx and PHP-FPM 7.2) | ||
# https://localhost:9094 with SSL (with Nginx and PHP-FPM 7.3) | ||
# https://localhost:9095 with SSL (with Nginx and PHP-FPM 5.6 with redis) | ||
# https://localhost:9096 with SSL (with Nginx and PHP-FPM 7.0 with redis) | ||
# https://localhost:9097 with SSL (with Nginx and PHP-FPM 7.1 with redis) | ||
# https://localhost:9098 with SSL (with Nginx and PHP-FPM 7.2 with redis) | ||
# https://localhost:9099 with SSL (with Nginx and PHP-FPM 7.3 with redis) | ||
# | ||
# On the main setup input screen: | ||
# 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) | ||
# 2. for Root Pass, use 'root' | ||
# 3. for User Hostname, use '%' | ||
# And when need to tear it down and restart it | ||
# 1. docker-compose down -v | ||
# 2. docker-compose up -d | ||
# Can see databases via http:https://localhost:8200 | ||
# | ||
version: '3.1' | ||
services: | ||
openemr-7-1: | ||
restart: always | ||
image: openemr/openemr:flex-3.7 | ||
ports: | ||
- 8080:80 | ||
- 9080:443 | ||
volumes: | ||
- ../../..:/var/www/localhost/htdocs/openemr | ||
environment: | ||
EMPTY: "yes" | ||
openemr-7-2: | ||
restart: always | ||
image: openemr/openemr:flex-3.8 | ||
ports: | ||
- 8081:80 | ||
- 9081:443 | ||
volumes: | ||
- ../../..:/var/www/localhost/htdocs/openemr | ||
environment: | ||
FORCE_NO_BUILD_MODE: "yes" | ||
EMPTY: "yes" | ||
openemr-7-1-redis: | ||
restart: always | ||
image: openemr/openemr:flex-3.7 | ||
ports: | ||
- 8082:80 | ||
- 9082:443 | ||
volumes: | ||
- ../../..:/var/www/localhost/htdocs/openemr | ||
environment: | ||
FORCE_NO_BUILD_MODE: "yes" | ||
REDIS_SERVER: "redis" | ||
EMPTY: "yes" | ||
openemr-7-2-redis: | ||
restart: always | ||
image: openemr/openemr:flex-3.8 | ||
ports: | ||
- 8083:80 | ||
- 9083:443 | ||
volumes: | ||
- ../../..:/var/www/localhost/htdocs/openemr | ||
environment: | ||
FORCE_NO_BUILD_MODE: "yes" | ||
REDIS_SERVER: "redis" | ||
EMPTY: "yes" | ||
mariadb: | ||
restart: always | ||
image: mariadb:10.2 | ||
command: ['mysqld','--character-set-server=utf8'] | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
mysql: | ||
restart: always | ||
image: mysql:5.7 | ||
command: ['mysqld','--character-set-server=utf8'] | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
mariadb-dev: | ||
restart: always | ||
image: mariadb:10.3 | ||
command: ['mysqld','--character-set-server=utf8'] | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
mysql-dev: | ||
restart: always | ||
image: mysql:8 | ||
command: ['mysqld','--character-set-server=utf8','--default-authentication-plugin=mysql_native_password'] | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
mariadb-old: | ||
restart: always | ||
image: mariadb:10.1 | ||
command: ['mysqld','--character-set-server=utf8'] | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
mariadb-very-old: | ||
restart: always | ||
image: mariadb:10.0 | ||
command: ['mysqld','--character-set-server=utf8'] | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
mariadb-very-very-old: | ||
restart: always | ||
image: mariadb:5.5 | ||
command: ['mysqld','--character-set-server=utf8'] | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
mysql-old: | ||
restart: always | ||
image: mysql:5.6 | ||
command: ['mysqld','--character-set-server=utf8'] | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
mysql-very-old: | ||
restart: always | ||
image: mysql:5.5 | ||
command: ['mysqld','--character-set-server=utf8'] | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
phpmyadmin: | ||
restart: always | ||
image: phpmyadmin/phpmyadmin | ||
ports: | ||
- 8200:80 | ||
environment: | ||
PMA_HOSTS: mariadb,mysql,mariadb-dev,mysql-dev,mysql-old,mysql-very-old,mariadb-old,mariadb-very-old,mariadb-very-very-old | ||
couchdb: | ||
restart: always | ||
image: couchdb | ||
ports: | ||
- 5984:5984 | ||
- 6984:6984 | ||
environment: | ||
COUCHDB_USER: admin | ||
COUCHDB_PASSWORD: password | ||
orthanc: | ||
restart: always | ||
image: jodogne/orthanc-plugins | ||
ports: | ||
- 4242:4242 | ||
- 8042:8042 | ||
nginx: | ||
restart: always | ||
image: openemr/dev-nginx | ||
ports: | ||
- 8090:80 | ||
- 9090:443 | ||
- 8091:81 | ||
- 9091:444 | ||
- 8092:82 | ||
- 9092:445 | ||
- 8093:83 | ||
- 9093:446 | ||
- 8094:84 | ||
- 9094:447 | ||
- 8095:85 | ||
- 9095:448 | ||
- 8096:86 | ||
- 9096:449 | ||
- 8097:87 | ||
- 9097:450 | ||
- 8098:88 | ||
- 9098:451 | ||
- 8099:89 | ||
- 9099:452 | ||
volumes: | ||
- ../../..:/usr/share/nginx/html/openemr | ||
- ./dockers/dev-nginx/nginx.conf:/etc/nginx/nginx.conf:ro | ||
- ./dockers/dev-nginx/dummy-cert:/etc/nginx/dummy-cert:ro | ||
- ./dockers/dev-nginx/dummy-key:/etc/nginx/dummy-key:ro | ||
depends_on: | ||
- dev-php-fpm-5-6 | ||
- dev-php-fpm-7-0 | ||
- dev-php-fpm-7-1 | ||
- dev-php-fpm-7-2 | ||
- dev-php-fpm-7-3 | ||
- dev-php-fpm-5-6-redis | ||
- dev-php-fpm-7-0-redis | ||
- dev-php-fpm-7-1-redis | ||
- dev-php-fpm-7-2-redis | ||
- dev-php-fpm-7-3-redis | ||
dev-php-fpm-5-6: | ||
restart: always | ||
image: openemr/dev-php-fpm:5.6 | ||
volumes: | ||
- ../../..:/usr/share/nginx/html/openemr | ||
- ./dockers/dev-php-fpm-5-6/php.ini:/usr/local/etc/php/php.ini:ro | ||
dev-php-fpm-7-0: | ||
restart: always | ||
image: openemr/dev-php-fpm:7.0 | ||
volumes: | ||
- ../../..:/usr/share/nginx/html/openemr | ||
- ./dockers/dev-php-fpm-7-0/php.ini:/usr/local/etc/php/php.ini:ro | ||
dev-php-fpm-7-1: | ||
restart: always | ||
image: openemr/dev-php-fpm:7.1 | ||
volumes: | ||
- ../../..:/usr/share/nginx/html/openemr | ||
- ./dockers/dev-php-fpm-7-1/php.ini:/usr/local/etc/php/php.ini:ro | ||
dev-php-fpm-7-2: | ||
restart: always | ||
image: openemr/dev-php-fpm:7.2 | ||
volumes: | ||
- ../../..:/usr/share/nginx/html/openemr | ||
- ./dockers/dev-php-fpm-7-2/php.ini:/usr/local/etc/php/php.ini:ro | ||
dev-php-fpm-7-3: | ||
restart: always | ||
image: openemr/dev-php-fpm:7.3 | ||
volumes: | ||
- ../../..:/usr/share/nginx/html/openemr | ||
- ./dockers/dev-php-fpm-7-3/php.ini:/usr/local/etc/php/php.ini:ro | ||
dev-php-fpm-5-6-redis: | ||
restart: always | ||
image: openemr/dev-php-fpm:5.6-redis | ||
volumes: | ||
- ../../..:/usr/share/nginx/html/openemr | ||
- ./dockers/dev-php-fpm-5-6-redis/php.ini:/usr/local/etc/php/php.ini:ro | ||
dev-php-fpm-7-0-redis: | ||
restart: always | ||
image: openemr/dev-php-fpm:7.0-redis | ||
volumes: | ||
- ../../..:/usr/share/nginx/html/openemr | ||
- ./dockers/dev-php-fpm-7-0-redis/php.ini:/usr/local/etc/php/php.ini:ro | ||
dev-php-fpm-7-1-redis: | ||
restart: always | ||
image: openemr/dev-php-fpm:7.1-redis | ||
volumes: | ||
- ../../..:/usr/share/nginx/html/openemr | ||
- ./dockers/dev-php-fpm-7-1-redis/php.ini:/usr/local/etc/php/php.ini:ro | ||
dev-php-fpm-7-2-redis: | ||
restart: always | ||
image: openemr/dev-php-fpm:7.2-redis | ||
volumes: | ||
- ../../..:/usr/share/nginx/html/openemr | ||
- ./dockers/dev-php-fpm-7-2-redis/php.ini:/usr/local/etc/php/php.ini:ro | ||
dev-php-fpm-7-3-redis: | ||
restart: always | ||
image: openemr/dev-php-fpm:7.3-redis | ||
volumes: | ||
- ../../..:/usr/share/nginx/html/openemr | ||
- ./dockers/dev-php-fpm-7-3-redis/php.ini:/usr/local/etc/php/php.ini:ro | ||
redis: | ||
restart: always | ||
image: redis |
Oops, something went wrong.