forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (63 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
63 lines (63 loc) · 1.54 KB
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
# 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
# MYSQL_USER, MYSQL_PASS, OE_USER, OE_PASS are optional for openemr and
# if not provided, then default to openemr, openemr, admin, and pass respectively.
services:
mysql:
restart: always
image: mariadb:11.8
command: ['mariadbd','--character-set-server=utf8mb4']
volumes:
- databasevolume:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
healthcheck:
test:
- CMD
- /usr/local/bin/healthcheck.sh
- --su-mysql
- --connect
- --innodb_initialized
start_period: 1m
start_interval: 10s
interval: 1m
timeout: 5s
retries: 3
openemr:
restart: always
image: openemr/openemr:7.0.4
ports:
- 80:80
- 443:443
volumes:
- logvolume01:/var/log
- sitevolume:/var/www/localhost/htdocs/openemr/sites
environment:
MYSQL_HOST: mysql
MYSQL_ROOT_PASS: root
MYSQL_USER: openemr
MYSQL_PASS: openemr
OE_USER: admin
OE_PASS: pass
depends_on:
mysql:
condition: service_healthy
healthcheck:
test:
- CMD
- /usr/bin/curl
- --fail
- --insecure
- --location
- --show-error
- --silent
- https://localhost/meta/health/readyz
start_period: 3m
start_interval: 10s
interval: 1m
timeout: 5s
retries: 3
volumes:
logvolume01: {}
sitevolume: {}
databasevolume: {}