add a docker-comose file for the tests

This commit is contained in:
Andreas Zweili 2020-12-07 17:58:51 +01:00
parent 026fb6e162
commit 10e6ebd4d4
1 changed files with 33 additions and 0 deletions

33
docker-compose.yml Normal file
View File

@ -0,0 +1,33 @@
version: '3'
volumes:
db_data:
services:
db:
image: postgres
environment:
- POSTGRES_DB
- POSTGRES_PASSWORD
volumes:
- db_data:/var/lib/postgresql/data/
backend:
build: backend/.
volumes:
- ./backend:/code
environment:
- DJANGO_SETTINGS_MODULE
- DJANGO_DEBUG
- DJANGO_SECRET_KEY
depends_on:
- db
frontend:
build: frontend/.
depends_on:
- backend
ports:
- 80:80
volumes:
- ./backend/static:/home/app/backend/static