forked from beda-software/fhir-sdc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.tests.yaml
47 lines (47 loc) · 1.06 KB
/
docker-compose.tests.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
version: '3.1'
services:
backend:
image: ${BUILD_IMAGE:-sdc-backend-test}
build: .
command: ${TEST_COMMAND}
env_file:
- env_tests
environment:
APP_FAST_START_MODE: ${APP_FAST_START_MODE}
links:
- devbox
volumes:
- .:/app
depends_on:
devbox-healthcheck:
condition:
service_healthy
devbox-healthcheck:
image: curlimages/curl
entrypoint: /bin/sleep 10000
links:
- devbox
depends_on:
- devbox
healthcheck:
test: curl --fail http://devbox:8080/__healthcheck || exit 1
interval: 1s
timeout: 20s
retries: 100
devbox:
image: healthsamurai/devbox:edge
depends_on:
- devbox-db
links:
- "devbox-db:database"
env_file:
- env_tests
environment:
AIDBOX_LICENSE_ID: ${TESTS_AIDBOX_LICENSE_ID}
AIDBOX_LICENSE_KEY: ${TESTS_AIDBOX_LICENSE_KEY}
devbox-db:
image: healthsamurai/aidboxdb:13.2
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: devbox