-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (66 loc) · 1.97 KB
/
docker-compose.yml
File metadata and controls
74 lines (66 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
networks:
web:
external: true
backend:
services:
database:
image: postgres:15-alpine
volumes:
- /data/bases/postgres/pretix.allmende.io:/var/lib/postgresql/data
environment:
- POSTGRES_USER
- POSTGRES_DB
- POSTGRES_PASSWORD
networks:
- backend
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_USER} -U $${POSTGRES_USER}"]
start_period: 20s
interval: 10s
retries: 5
timeout: 5s
redis:
image: redis:6-alpine
command: redis-server --save 60 1 --loglevel warning
networks:
- backend
volumes:
- /data/bases/redis/pretix.allmende.io:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
start_period: 10s
interval: 10s
retries: 5
timeout: 3s
pretix:
image: pretix/standalone:2024.6
volumes:
- ./.state/pretix/data:/data
- ./.state/pretix/etc/pretix:/etc/pretix
depends_on:
database:
condition: service_healthy
redis:
condition: service_healthy
networks:
- backend
- web
sysctls:
net.core.somaxconn: 4096
labels:
traefik.enable: true
traefik.http.routers.io-allmende-pretix-web.entrypoints: web
traefik.http.routers.io-allmende-pretix-web.rule: Host(`pretix.allmende.io`)
traefik.http.routers.io-allmende-pretix-web.middlewares: http-to-https
traefik.http.middlewares.http-to-https.redirectscheme.scheme: https
traefik.http.middlewares.http-to-https.redirectscheme.permanent: true
traefik.http.routers.io-allmende-pretix-web-secure.entrypoints: webs
traefik.http.routers.io-allmende-pretix-web-secure.rule: Host(`pretix.allmende.io`)
traefik.http.routers.io-allmende-pretix-web-secure.tls: true
traefik.http.routers.io-allmende-pretix-web-secure.tls.certresolver: le
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '3'
compress: 'true'