Pretix für Hackertours
This commit is contained in:
parent
b94cb009ad
commit
f238182302
4 changed files with 125 additions and 8 deletions
|
@ -0,0 +1,55 @@
|
|||
---
|
||||
version: "3.6"
|
||||
|
||||
services:
|
||||
database:
|
||||
image: docker.io/library/postgres:15-alpine
|
||||
environment:
|
||||
- "POSTGRES_USER=pretix"
|
||||
- "POSTGRES_PASSWORD={{ lookup("community.general.passwordstore", "noc/vm-secrets/chaosknoten/hackertours/DB_PASSWORD", create=false, missing="error") }}"
|
||||
- "POSTGRES_DB=pretix"
|
||||
volumes:
|
||||
- database:/var/lib/postgresql/data
|
||||
networks:
|
||||
backend:
|
||||
restart: always
|
||||
|
||||
redis:
|
||||
image: docker.io/redis:7
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- redis:/rdata
|
||||
# run redis-server, save a snapshot every 60 seconds if there has been at least 1 write
|
||||
command: ["redis-server", "--save", "60", "1"]
|
||||
restart: always
|
||||
|
||||
pretix:
|
||||
image: gitlab-cr.hamburg.ccc.de/ccchh/ccchh-pretix/ccchh-pretix:23.10.0
|
||||
environment:
|
||||
- "PRETIX_INSTANCE_NAME=CCCHH Hackertours"
|
||||
- "PRETIX_URL=http://hackertours.hamburg.ccc.de"
|
||||
- "DATABASE_BACKEND=postgresql"
|
||||
- "DATABASE_NAME=pretix"
|
||||
- "DATABASE_USER=pretix"
|
||||
- "DATABASE_PASSWORD={{ lookup("community.general.passwordstore", "noc/vm-secrets/chaosknoten/hackertours/DB_PASSWORD", create=false, missing="error") }}"
|
||||
- "DATABASE_HOST=database"
|
||||
- "MAIL_FROM=foo@example.com"
|
||||
- "MAIL_HOST=cow-intern.hamburg.ccc.de"
|
||||
- "REDIS_LOCATION=redis://redis/0"
|
||||
- "CELERY_BACKEND=redis://redis/0"
|
||||
- "CELERY_BROKER=redis://redis/1"
|
||||
volumes:
|
||||
- pretix:/rdata
|
||||
restart: always
|
||||
|
||||
|
||||
volumes:
|
||||
database: {}
|
||||
pretix: {}
|
||||
redis: {}
|
||||
|
||||
networks:
|
||||
backend:
|
||||
internal: true
|
||||
frontend:
|
Loading…
Add table
Add a link
Reference in a new issue