Files
Quatsh-Website/compose.yaml
WGAVermeer cbf5e4b503
Some checks failed
Gitea build & Test. / docker (push) Failing after 19s
choose correct .env
2026-03-08 14:36:06 +01:00

49 lines
948 B
YAML

services:
web:
build: .
command: gunicorn --proxy-protocol auto --proxy-allow-from 10.10.50.11 website.wsgi:application
depends_on:
- db
ports:
- 8000:8000
environment:
PYTHONDONTWRITEBYTECODE: 1
PYTHONUNBUFFERED: 1
DJANGO_SETTINGS_MODULE: ${DJANGO_SETTINGS_MODULE}
restart: unless-stopped
db:
image: postgres:18
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql
env_file:
- path: .env.template
required: true
- path: .env
required: false
restart: unless-stopped
adminer:
image: adminer
depends_on:
- db
restart: always
ports:
- 8080:8080
test:
build: .
command: python manage.py test
depends_on:
- db
profiles:
- test
volumes:
postgres_data: