2023-12-03 13:14:34 +01:00
|
|
|
---
|
|
|
|
services:
|
|
|
|
database:
|
|
|
|
image: docker.io/library/postgres:15-alpine
|
|
|
|
environment:
|
|
|
|
- "POSTGRES_USER=pretix"
|
2024-10-13 09:10:10 +02:00
|
|
|
- "POSTGRES_PASSWORD={{ lookup("community.general.passwordstore", "noc/vm-secrets/chaosknoten/tickets/DB_PASSWORD", create=false, missing="error") }}"
|
2023-12-03 13:14:34 +01:00
|
|
|
- "POSTGRES_DB=pretix"
|
|
|
|
volumes:
|
|
|
|
- database:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
backend:
|
2024-09-08 17:45:00 +02:00
|
|
|
restart: unless-stopped
|
2023-12-03 13:14:34 +01:00
|
|
|
|
|
|
|
redis:
|
2024-09-13 20:00:39 +02:00
|
|
|
image: docker.io/library/redis:7
|
2023-12-03 13:14:34 +01:00
|
|
|
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"]
|
2024-09-08 17:45:00 +02:00
|
|
|
restart: unless-stopped
|
2023-12-03 20:34:31 +01:00
|
|
|
networks:
|
|
|
|
backend:
|
2023-12-03 13:14:34 +01:00
|
|
|
|
|
|
|
pretix:
|
2024-09-13 20:00:39 +02:00
|
|
|
image: docker.io/pretix/standalone:2024.8
|
2023-12-03 20:34:31 +01:00
|
|
|
command: ["all"]
|
|
|
|
ports:
|
|
|
|
- "8345:80"
|
2023-12-03 13:14:34 +01:00
|
|
|
volumes:
|
2024-08-16 20:16:19 +02:00
|
|
|
- ./configs/pretix.cfg:/etc/pretix/pretix.cfg
|
2023-12-07 20:05:10 +01:00
|
|
|
- pretix:/data
|
2024-09-08 17:45:00 +02:00
|
|
|
restart: unless-stopped
|
2023-12-03 20:34:31 +01:00
|
|
|
networks:
|
|
|
|
backend:
|
|
|
|
frontend:
|
2023-12-03 13:14:34 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
database: {}
|
|
|
|
pretix: {}
|
|
|
|
redis: {}
|
|
|
|
|
|
|
|
networks:
|
|
|
|
backend:
|
|
|
|
internal: true
|
|
|
|
frontend:
|