-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
60 lines (56 loc) · 1.59 KB
/
compose.yaml
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
services:
gateway:
image: openmrs/openmrs-reference-application-3-gateway:qa
container_name: sesp-gateway
restart: "unless-stopped"
depends_on:
- frontend
- backend
ports:
- "80:80"
frontend:
image: hub.csaude.org.mz/sesp/openmrs-distro-sesp-frontend:latest
container_name: sesp-frontend
restart: "unless-stopped"
environment:
SPA_PATH: /openmrs/spa
API_URL: /openmrs
SPA_CONFIG_URLS: /openmrs/spa/spa-config.json
SPA_DEFAULT_LOCALE: pt
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost/" ]
timeout: 5s
depends_on:
- backend
backend:
image: hub.csaude.org.mz/sesp/openmrs-distro-sesp-backend:latest
container_name: sesp-backend
restart: "unless-stopped"
depends_on:
- db
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/openmrs" ]
timeout: 5s
volumes:
- /etc/localtime:/etc/localtime
- ./backend/logs:/usr/local/tomcat/logs
db:
image: hub.csaude.org.mz/sesp/mysql:8.4.2
container_name: sesp-db
restart: "unless-stopped"
environment:
# -- BOF REMOVE AFTER DATABASE CREATION
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: openmrs_prod
MYSQL_USER: sesp
MYSQL_PASSWORD: sesp
# -- EOF REMOVE AFTER DATABASE CREATION
MYSQL_DATA_DIRECTORY: /var/lib/mysql
volumes:
- /etc/localtime:/etc/localtime
- ./database/conf/mysql.cnf:/etc/mysql/mysql.conf
- ./database/logs:/var/log/mysql
- db-data:/var/lib/mysql
- ./database/scripts:/scripts
volumes:
db-data: