quick minor path updates (#1968)
[openemr.git] / docker-compose.yml
blobb01349d14e1a2505676fa6123858928d6ff62c5a
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     ports:
14     - 8320:3306
15     volumes:
16     - databasevolume:/var/lib/mysql
17     environment:
18       MYSQL_ROOT_PASSWORD: root
19   openemr:
20     restart: always
21     # use an image if you're not changing the build steps:
22     image: openemr/openemr:flex
23     # if editing the Dockerfile, clone the devops repo and point to the path:
24     # build: ../openemr-devops/docker/openemr/flex-edge/
25     ports:
26     - 8300:80
27     - 9300:443
28     - 3000:3000 # browsersync
29     - 3001:3001 # browsersync-admin
30     volumes:
31     - .:/var/www/localhost/htdocs/openemr:rw
32     - assetsvolume01:/var/www/localhost/htdocs/openemr/public:rw
33     - cachevolume01:/var/www/localhost/htdocs/openemr/gacl/admin/templates_c:rw
34     - cachevolume02:/var/www/localhost/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled:rw
35     - cachevolume03:/var/www/localhost/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/cache:rw
36     - configvolume01:/var/www/localhost/htdocs/openemr/sites/default:rw
37     - configvolume02:/var/www/localhost/htdocs/openemr/interface/modules/zend_modules/config:rw
38     - logvolume01:/var/log
39     - nodemodules:/var/www/localhost/htdocs/openemr/node_modules:rw
40     - vendordir:/var/www/localhost/htdocs/openemr/vendor:rw
41     - ccdamodule:/var/www/localhost/htdocs/openemr/ccdaservice:rw
42     environment:
43       MYSQL_HOST: mysql
44       MYSQL_ROOT_PASS: root
45       MYSQL_USER: openemr
46       MYSQL_PASS: openemr
47       OE_USER: admin
48       OE_PASS: pass
49       FLEX_REPOSITORY: https://github.com/openemr/openemr.git
50       FLEX_REPOSITORY_BRANCH: master
51       EASY_DEV_MODE: "yes"
52     depends_on:
53     - mysql
54   phpmyadmin:
55     restart: always
56     image: phpmyadmin/phpmyadmin
57     ports:
58     - 8310:80
59     environment:
60       PMA_HOSTS: mysql
61 volumes:
62   databasevolume: {}
63   assetsvolume01: {}
64   cachevolume01: {}
65   cachevolume02: {}
66   cachevolume03: {}
67   configvolume01: {}
68   configvolume02: {}
69   logvolume01: {}
70   nodemodules: {}
71   vendordir: {}
72   ccdamodule: {}