-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
55 lines (53 loc) · 1.33 KB
/
docker-compose.test.yml
File metadata and controls
55 lines (53 loc) · 1.33 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
52
53
54
55
services:
test:
build:
context: .
dockerfile: ./.docker/test.Dockerfile
args:
DOCKER_BUILDKIT: 1
target: runtime
restart: "no"
container_name: multidirectory-test
volumes:
- ./app:/app
- ./tests:/app/tests
environment:
DEBUG: 1
DOMAIN: md.test
HOST_MACHINE_NAME: DC1
DEFAULT_NAMESERVER: 127.0.0.1
POSTGRES_USER: user1
POSTGRES_PASSWORD: password123
PDNS_API_KEY: testkey123
PDNS_DIST_KEY: testkey123
SECRET_KEY: 6a0452ae20cab4e21b6e9d18fa4b7bf397dd66ec3968b2d7407694278fd84cce
POSTGRES_HOST: postgres
# PYTHONTRACEMALLOC: 1
PYTHONDONTWRITEBYTECODE: 1
command: sh -c "python -B -m pytest -n auto -x -W ignore::DeprecationWarning -W ignore::coverage.exceptions.CoverageWarning -vv"
tty: true
postgres:
container_name: MD-test-postgres
image: postgres:16
restart: "no"
environment:
POSTGRES_USER: user1
POSTGRES_PASSWORD: password123
expose:
- "5432"
logging:
driver: "none"
tmpfs:
- /var/lib/postgresql/data
dragonfly:
image: 'docker.dragonflydb.io/dragonflydb/dragonfly'
container_name: dragonfly-test
expose:
- "6379"
tmpfs:
- /data
deploy:
resources:
limits:
cpus: '0.5'
memory: 0.5GiB