| 1 |
version: "3.7" |
| 2 |
|
| 3 |
services: |
| 4 |
test: |
| 5 |
build: |
| 6 |
context: . |
| 7 |
dockerfile: Dockerfile |
| 8 |
depends_on: |
| 9 |
- postgres |
| 10 |
environment: |
| 11 |
- DJANGO_SETTINGS_MODULE=settings |
| 12 |
volumes: |
| 13 |
- root_dir:/root |
| 14 |
- ./rest_framework_gis:/project/rest_framework_gis |
| 15 |
- ./tests:/project/tests |
| 16 |
- ./README.rst:/project/README.rst |
| 17 |
- ./setup.py:/project/setup.py |
| 18 |
command: sh -c "pip install -e . && python ./tests/manage.py test tests/django_restframework_gis_tests && ./run-qa-checks" |
| 19 |
|
| 20 |
postgres: |
| 21 |
image: postgis/postgis:15-3.4-alpine |
| 22 |
environment: |
| 23 |
POSTGRES_PASSWORD: postgres |
| 24 |
POSTGRES_USER: postgres |
| 25 |
POSTGRES_DB: django_restframework_gis |
| 26 |
ports: |
| 27 |
- 5432:5432 |
| 28 |
volumes: |
| 29 |
- postgres_data:/var/lib/postgresql/data |
| 30 |
|
| 31 |
volumes: |
| 32 |
postgres_data: |
| 33 |
root_dir: |