Skip to content

Commit 2db087e

Browse files
committed
feat: Init the repository and add the compose file
1 parent 7c3a3bd commit 2db087e

File tree

5 files changed

+96
-1
lines changed

5 files changed

+96
-1
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "docker"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
reviewers:
8+
- "ZPascal"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.idea/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# pretix-docker-compose
2-
The repository includes a Pretix Docker compose configuration
2+
The repository includes a Pretix Docker compose configuration.

docker-compose.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
version: '3'
2+
services:
3+
app:
4+
container_name: pretix_app
5+
image: pretix/standalone:stable
6+
restart: always
7+
depends_on:
8+
- database
9+
- cache
10+
volumes:
11+
- pretix_data:/data
12+
- ./docker/pretix.cfg:/etc/pretix/pretix.cfg
13+
ports:
14+
- "8000:80"
15+
networks:
16+
- backend
17+
18+
database:
19+
image: postgres:13-alpine3.19
20+
container_name: database
21+
ports:
22+
- "5432:5432"
23+
environment:
24+
- POSTGRES_USER=pretix
25+
- POSTGRES_PASSWORD=pretix
26+
volumes:
27+
- postgres_data:/var/lib/postgresql/data
28+
networks:
29+
- backend
30+
31+
cache:
32+
image: redis:alpine3.19
33+
container_name: redis
34+
ports:
35+
- "6379:6379"
36+
restart: always
37+
networks:
38+
- backend
39+
40+
volumes:
41+
postgres_data:
42+
driver: local
43+
pretix_data:
44+
driver: local
45+
46+
networks:
47+
backend:
48+
external: false

docker/pretix.cfg

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[pretix]
2+
instance_name=localhost
3+
url=http://localhost
4+
currency=EUR
5+
; DO NOT change the following value, it has to be set to the location of the
6+
; directory *inside* the docker container
7+
datadir=/data
8+
registration=off
9+
10+
[locale]
11+
default=de
12+
timezone=Europe/Berlin
13+
14+
[database]
15+
backend=postgresql
16+
name=pretix
17+
user=pretix
18+
password=pretix
19+
host=database
20+
21+
[mail]
22+
from=FROM_MAIL
23+
host=MAIL_SERVER
24+
user=USERNAME
25+
password=FOOBAR
26+
port=587
27+
tls=off
28+
ssl=off
29+
30+
[redis]
31+
location=redis://cache/0
32+
; Remove the following line if you are unsure about your redis'security
33+
; to reduce impact if redis gets compromised.
34+
sessions=true
35+
36+
[celery]
37+
backend=redis://cache/1
38+
broker=redis://cache/2

0 commit comments

Comments
 (0)