forked from Aidbox/aidbox-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
43 lines (43 loc) · 928 Bytes
/
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
version: '3.1'
services:
aidbox-db:
image: "healthsamurai/aidboxdb:16.1"
env_file:
- ./envs/db
ports:
- 5432:5432
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 5s
timeout: 5s
retries: 10
aidbox:
image: ${AIDBOX_PROJECT_IMAGE}
build: example/aidbox-project/
depends_on:
aidbox-db:
condition: service_healthy
env_file:
- ./envs/aidbox
environment:
AIDBOX_LICENSE: ${AIDBOX_LICENSE}
healthcheck:
test: curl --fail http://localhost:8080/health || exit 1
interval: 5s
timeout: 30s
retries: 50
app:
build:
context: .
args:
PYTHON_VERSION: ${PYTHON:-3.11}
command: ["pipenv", "run", "pytest"]
depends_on:
aidbox:
condition: service_healthy
env_file:
- ./envs/backend
ports:
- "8081:8081"
volumes:
- .:/app