forked from LibreHealthIO/lh-ehr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
46 lines (43 loc) · 902 Bytes
/
docker-compose.prod.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
version: '3.7'
services:
db:
image: mariadb:10.3
volumes:
- db_data:/var/lib/mysql
restart: always
env_file: ./docker/.env.mysql
lh-ehr:
image: registry.gitlab.com/librehealth/ehr/lh-ehr:latest
volumes:
- sites:/var/www/html/sites
ports:
- "8000:80"
restart: always
env_file: ./docker/.env.ehr
depends_on:
- db
adminer:
image: adminer:4
restart: always
ports:
- "8001:8080"
depends_on:
- db
backup:
image: registry.gitlab.com/librehealth/lsc/lh-docker-cron-backup:latest
depends_on:
- db
- lh-ehr
restart: always
volumes:
- db_data:/db_data
- sites:/sites
- ${BACKUP_DIR-./backups}:/backup
environment:
- DIRS=/db_data:db_data,/sites:sites
env_file: ./docker/.env.ehr
healthcheck:
test: "exit 0"
volumes:
db_data:
sites: