--- services: web: command: python manage.py check --deploy; python -Wa manage.py test --noinput --parallel environment: DEBUG: false DJANGO_SETTINGS_MODULE: website.settings.test env_file: - path: .env.template required: true db: # Tmpfs keeps tests fast and isolated — no persistent volume needed tmpfs: [/var/lib/postgresql/data] env_file: - path: .env.template required: true