-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (30 loc) · 937 Bytes
/
docker-compose.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
version: "3.7"
services:
test:
build:
context: .
dockerfile: Dockerfile
depends_on:
- postgres
environment:
- DJANGO_SETTINGS_MODULE=settings
volumes:
- root_dir:/root
- ./rest_framework_gis:/project/rest_framework_gis
- ./tests:/project/tests
- ./README.rst:/project/README.rst
- ./setup.py:/project/setup.py
command: sh -c "pip install -e . && python ./tests/manage.py test tests/django_restframework_gis_tests && ./run-qa-checks"
postgres:
image: mdillon/postgis:10-alpine
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: django_restframework_gis
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data:
root_dir: