forked from niwcpac/mole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-tests.yml
48 lines (41 loc) · 1015 Bytes
/
docker-compose-tests.yml
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
version: '3.7'
services:
pulsar:
init: true
build: ./pulsar
environment:
- PYTHONDONTWRITEBYTECODE=1
- PYTHONUNBUFFERED=1
entrypoint: ["/usr/bin/python"]
command: ["-m", "pytest", "-s", "tests/"]
postgres:
image: postgis/postgis:11-3.0
environment:
- POSTGRES_DB=${PGDATABASE}
- POSTGRES_USER=${PGUSER}
- POSTGRES_PASSWORD=${PGPASSWORD}
volumes:
- ./mole/build/postgresql.conf:/etc/postgresql/postgresql.conf
command: ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]
redis:
image: redis:latest
django:
init: true
volumes:
- ./mole:/home/django/mole
depends_on:
- postgres
build: mole/.
environment:
- PGDATABASE
- PGUSER
- PGPASSWORD
- POPULATE_DB
- PROFILE
- BACKUP_FLAG
- PYTHONUNBUFFERED
- DEBUG_DJANGO
- PYTHONDONTWRITEBYTECODE=1
- TIMEZONE
entrypoint: build/init_test.sh
working_dir: /home/django/mole