ansible-infra/playbooks/templates/chaosknoten/configs/hackertours/compose.yaml.j2

71 lines
1.8 KiB
Text
Raw Normal View History

2023-12-03 13:14:34 +01:00
---
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
networks:
backend:
2023-12-03 13:14:34 +01:00
pretix:
image: gitlab-cr.hamburg.ccc.de/ccchh/ccchh-pretix/ccchh-pretix:23.10.0
command: ["all"]
ports:
- "8345:80"
2023-12-03 13:14:34 +01:00
environment:
- "PRETIX_INSTANCE_NAME=CCCHH Hackertours"
2023-12-10 14:03:53 +01:00
- "PRETIX_URL=https://hackertours.hamburg.ccc.de"
2023-12-03 13:14:34 +01:00
- "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=ticket@hackertours.hamburg.ccc.de"
2023-12-03 13:14:34 +01:00
- "MAIL_HOST=cow-intern.hamburg.ccc.de"
- "REDIS_LOCATION=redis://redis/0"
- "CELERY_BACKEND=redis://redis/0"
- "CELERY_BROKER=redis://redis/1"
volumes:
2023-12-07 20:05:10 +01:00
- pretix:/data
2023-12-03 13:14:34 +01:00
restart: always
networks:
backend:
frontend:
2023-12-03 13:14:34 +01:00
2023-12-07 20:05:10 +01:00
web:
image: gitlab-cr.hamburg.ccc.de/ccchh/hackertours/hackertours:latest
ports:
- "8888:80"
restart: always
networks:
frontend:
2023-12-03 13:14:34 +01:00
volumes:
database: {}
pretix: {}
redis: {}
networks:
backend:
internal: true
frontend: