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