-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yaml
60 lines (60 loc) · 1.25 KB
/
docker-compose.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
version: '3.1'
services:
devbox-db:
image: "healthsamurai/aidboxdb:14.5"
ports:
- "5434:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: devbox
devbox:
image: "healthsamurai/aidboxone:latest"
depends_on:
- devbox-db
links:
- "devbox-db:database"
ports:
- "8080:8080"
env_file:
- env_tests
environment:
PGHOST: database
PGDATABASE: devbox
PGPORT: 5432
PGUSER: postgres
PGPASSWORD: postgres
AIDBOX_CONFIG: /var/config/config.edn
AIDBOX_LICENSE: ${AIDBOX_LICENSE}
volumes:
- ./config:/var/config
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
app:
build:
context: .
args:
PYTHON_VERSION: ${PYTHON:-3.11}
command: ["pipenv", "run", "pytest"]
depends_on:
devbox-healthcheck:
condition:
service_healthy
links:
- devbox
env_file:
- env_tests
ports:
- "8081:8081"
volumes:
- .:/app