forked from beda-software/sdc-ide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.tests.yaml
35 lines (35 loc) · 1.09 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
version: '3.1'
services:
backend:
image: "bedasoftware/aidbox-sdc:latest"
command: ["wait-for-it.sh", "devbox:8080", "--strict", "--timeout=0", "--", "pipenv", "run", "gunicorn", "main:create_app", "--worker-class", "aiohttp.worker.GunicornWebWorker", "-b", "0.0.0.0:8081"]
env_file:
- env_tests
depends_on:
- devbox
links:
- devbox
volumes:
- ./wait-for-it.sh:/usr/local/bin/wait-for-it.sh
devbox:
image: healthsamurai/devbox:stable
command: ["wait-for-it.sh", "database:5432", "--strict", "--timeout=0", "--", "java", "-jar", "/aidbox.jar", "-m", "devbox.core"]
depends_on:
- devbox-db
links:
- "devbox-db:database"
env_file:
- env_tests
environment:
AIDBOX_LICENSE_ID: ${AIDBOX_LICENSE_ID_TESTS}
AIDBOX_LICENSE_KEY: ${AIDBOX_LICENSE_KEY_TESTS}
volumes:
- ./wait-for-it.sh:/usr/local/bin/wait-for-it.sh
ports:
- 8181:8080
devbox-db:
image: healthsamurai/aidboxdb:13.2
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: devbox