added sepparate docker-compose file for tests

main
mtyton 2023-07-20 18:35:01 +02:00
rodzic 79390febc2
commit bf4eb00cc9
1 zmienionych plików z 30 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,30 @@
version: "3.8"
services:
test_db:
image: postgres
restart: always
environment:
- POSTGRES_ROOT_PASSWORD
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- ../postgres/:/var/lib/postgresql
env_file:
- .env
test_comfy:
depends_on:
- test_db
build:
dockerfile: Dockerfile.local
context: ./
user: "${UID}:${GID}"
volumes:
- ./:/app
environment:
- SECRET_KEY
- DATABASE_URL
env_file:
- .env
command:
python manage.py test --noinput