-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (45 loc) · 1 KB
/
docker-compose.yml
File metadata and controls
51 lines (45 loc) · 1 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
version: "3"
volumes:
mariadb-data:
backend-image:
services:
mariadb:
image: ${MARIA_DB_IMAGE}
container_name: slgi-emr-mariadb
env_file:
.env
volumes:
- ./mariadb/sql:/docker-entrypoint-initdb.d/
- mariadb-data:/var/lib/mysql
- ./mariadb/procedure:/var/run/procedure
restart: always
redis:
image: ${REDIS_IMAGE}
container_name: slgi-emr-redis
volumes:
- ./redis/redis.conf:/etc/redis/redis.conf
command: ["redis-server", "/etc/redis/redis.conf"]
restart: always
backend:
build:
context: ./server
image: ${USERNAME}/slgi-emr-backend
container_name: slgi-emr-backend
env_file:
.env
volumes:
- backend-image:${UPLOAD_DIR}
depends_on:
- redis
- mariadb
restart: always
frontend:
build:
context: ./frontend
image: ${USERNAME}/slgi-emr-frontend
container_name: slgi-emr-frontend
ports:
- ${FRONTEND_PORT}
depends_on:
- backend
restart: always