-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdocker-compose.testscript.yaml
84 lines (84 loc) · 2.22 KB
/
docker-compose.testscript.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: fhir-emr-testscript
services:
sdc-ide:
image: bedasoftware/sdc-ide:master
depends_on:
devbox-healthcheck:
condition: service_healthy
ports:
- '3001:5000'
sdc:
image: bedasoftware/fhir-sdc:master
depends_on:
devbox-healthcheck:
condition: service_healthy
links:
- devbox
env_file:
- ./env/sdc
# Colored logs
tty: true
sdc-healthcheck:
image: curlimages/curl
entrypoint: /bin/sleep 10000
links:
- sdc
depends_on:
- sdc
healthcheck:
test: curl --fail http://sdc:8081/live || exit 1
interval: 1s
timeout: 20s
retries: 100
devbox:
image: healthsamurai/aidboxone:stable
depends_on:
- devbox-db_test
- build-seeds
links:
- 'devbox-db_test:database'
ports:
- '8080:8080'
env_file:
- ./env/aidbox
- .env
volumes:
- ./config:/var/config:cached
- ./zenproject:/zenproject
devbox-db_test:
image: 'healthsamurai/aidboxdb:13.2'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: devbox
devbox-healthcheck:
image: curlimages/curl
entrypoint: /bin/sleep 10000
links:
- devbox
depends_on:
- devbox
healthcheck:
test: curl --fail http://devbox:8080/health || exit 1
interval: 5s
timeout: 30s
retries: 100
build-seeds:
image: bedasoftware/fhirsnake
command:
- export
- --output
- /app/zenproject/seeds.ndjson.gz
volumes:
- ./zenproject:/app/zenproject
- ./resources/seeds:/app/resources
testscript:
image: bedasoftware/testscript-eval:latest
depends_on:
sdc-healthcheck:
condition: service_healthy
volumes:
- ./resources:/app
env_file:
- ./env/testscript
command: pytest