-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.tests.yaml
51 lines (51 loc) · 1.33 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
48
49
50
51
version: '3.1'
services:
backend:
image: 'bedasoftware/aidbox-sdc:latest'
env_file:
- env_tests
depends_on:
devbox-healthcheck:
condition: service_healthy
links:
- devbox
healthcheck:
test: curl --fail http://backend:8081/live || exit 1
interval: 1s
timeout: 20s
retries: 100
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/aidboxone:latest
depends_on:
- devbox-db
links:
- 'devbox-db:database'
env_file:
- env_tests
environment:
AIDBOX_LICENSE: ${AIDBOX_LICENSE}
ports:
- 8181:8080
devbox-db:
image: healthsamurai/aidboxdb:14.5
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: devbox
ready:
image: hello-world
depends_on:
backend:
condition: service_healthy