fixes to the easy docker dev environment
[openemr.git] / docker-compose.yml
blob751190fecae612eb69fb1960d373d43a5a6b2a46
1 # Use admin/pass as user/password credentials to login to openemr (from OE_USER and OE_PASS below)
2 # MYSQL_HOST and MYSQL_ROOT_PASS are required for openemr
3 # FLEX_REPOSITORY and (FLEX_REPOSITORY_BRANCH or FLEX_REPOSITORY_TAG) are required for flex openemr
4 # EASY_DEV_MODE prevents issues with permissions when mounting volumes
5 # MYSQL_USER, MYSQL_PASS, OE_USER, MYSQL_PASS are optional for openemr and
6 #   if not provided, then default to openemr, openemr, admin, and pass respectively.
7 version: '3.1'
8 services:
9   mysql:
10     restart: always
11     image: mariadb:10.2
12     command: ['mysqld','--character-set-server=utf8']
13     volumes:
14     - databasevolume:/var/lib/mysql
15     environment:
16       MYSQL_ROOT_PASSWORD: root
17   openemr:
18     restart: always
19     # use an image if you're not changing the build steps:
20     image: openemr/openemr:flex
21     # if editing the Dockerfile, clone the devops repo and point to the path:
22     # build: ../openemr-devops/docker/openemr/flex-edge/
23     ports:
24     - 8300:80
25     - 9300:443
26     - 3000:3000 # browsersync
27     - 3001:3001 # browsersync-admin
28     volumes:
29     - .:/var/www/localhost/htdocs/openemr:rw
30     - assetsvolume01:/var/www/localhost/htdocs/openemr/public:rw
31     - cachevolume01:/var/www/localhost/htdocs/openemr/gacl/admin/templates_c:rw
32     - cachevolume02:/var/www/localhost/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled:rw
33     - cachevolume03:/var/www/localhost/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/cache:rw
34     - configvolume01:/var/www/localhost/htdocs/openemr/sites/default:rw
35     - configvolume02:/var/www/localhost/htdocs/openemr/interface/modules/zend_modules/config:rw
36     - logvolume01:/var/log
37     - nodemodules:/var/www/localhost/htdocs/openemr/node_modules:rw
38     - vendordir:/var/www/localhost/htdocs/openemr/vendor:rw
39     - ccdamodule:/var/www/localhost/htdocs/openemr/ccdaservice:rw
40     environment:
41       MYSQL_HOST: mysql
42       MYSQL_ROOT_PASS: root
43       MYSQL_USER: openemr
44       MYSQL_PASS: openemr
45       OE_USER: admin
46       OE_PASS: pass
47       FLEX_REPOSITORY: https://github.com/openemr/openemr.git
48       FLEX_REPOSITORY_BRANCH: master
49       EASY_DEV_MODE: "yes"
50     depends_on:
51     - mysql
52 volumes:
53   databasevolume: {}
54   assetsvolume01: {}
55   cachevolume01: {}
56   cachevolume02: {}
57   cachevolume03: {}
58   configvolume01: {}
59   configvolume02: {}
60   logvolume01: {}
61   nodemodules: {}
62   vendordir: {}
63   ccdamodule: {}