-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
51 lines (48 loc) · 1.12 KB
/
docker-compose.test.yml
File metadata and controls
51 lines (48 loc) · 1.12 KB
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
services:
db:
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_DB: horizon
POSTGRES_USER: horizon
POSTGRES_PASSWORD: 123UsedForTestOnly
POSTGRES_INITDB_ARGS: --encoding=UTF-8 --lc-collate=C --lc-ctype=C
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: pg_isready
start_period: 5s
interval: 30s
timeout: 5s
retries: 3
backend:
image: mtsrus/horizon-backend:${VERSION:-develop}
restart: unless-stopped
build:
context: .
dockerfile: docker/Dockerfile.backend
target: test
network: host
env_file: .env.docker
depends_on:
db:
condition: service_healthy
ports:
- 8000:8000
volumes:
- ./horizon:/app/horizon
- ./docs/_static:/app/docs/_static
- ./reports:/app/reports
- ./tests:/app/tests
- ./pyproject.toml:/app/pyproject.toml
ldap:
image: thoteam/slapd-server-mock
platform: linux/amd64
restart: unless-stopped
ports:
- 389:389
- 636:636
volumes:
postgres_data: