forked from uwrit/leaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (46 loc) · 1.59 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
version: "3"
services:
mssql:
image: mcr.microsoft.com/mssql/server:${MSSQL_IMAGE_TAG:-2017-latest}
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: Th3PA55--8zz
volumes:
- leaf-mssql:/var/opt/mssql
- ./src/db/build/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh:ro
- ./src/db/build/configure-db.sh:/usr/local/bin/configure-db.sh:ro
- ./src/db/build/setup.sql:/opt/mssql/setup.sql:ro
- ./src/db/build/LeafDB.Schema.sql:/docker-entrypoint-initdb.d/00LeafDB.Schema.sql:ro
- ./src/db/build/LeafDB.Init.sql:/docker-entrypoint-initdb.d/01LeafDB.Init.sql:ro
# stored in separate uwrit/leaf-scripts repo, must be present at startup
# https://github.com/uwrit/leaf-scripts/blob/master/GEMs/LeafDB.GEMs.sql
- ./src/db/build/LeafDB.GEMs.sql:/docker-entrypoint-initdb.d/02LeafDB.GEMs.sql:ro
entrypoint: /usr/local/bin/docker-entrypoint.sh
command: /opt/mssql/bin/sqlservr
networks:
- internal
coreapi:
image: ghcr.io/uwcirg/leaf-api:${LEAF_API_IMAGE_TAG:-latest}
build:
context: ./src/server
depends_on:
- mssql
volumes:
- ${KEYS:-./src/server/keys}:/.keys
environment:
LEAF_JWT_KEY_PW: ${JWT_KEY_PW}
LEAF_APP_DB: Server=mssql,1433;Database=LeafDB;uid=sa;Password=Th3PA55--8zz
LEAF_CLIN_DB: ${CLIN_DB}
networks:
- internal
node:
image: ghcr.io/uwcirg/leaf-frontend:${LEAF_FRONTEND_IMAGE_TAG:-latest}
build:
context: ./src/ui-client
depends_on:
- coreapi
volumes:
leaf-mssql:
networks:
# internal network for backing services
internal: