-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.pretix.yml
53 lines (49 loc) · 1.14 KB
/
docker-compose.pretix.yml
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
networks:
pretix:
driver: bridge
internal: false
services:
pretix:
image: pretix/standalone:latest
profiles:
- pretix
networks:
- app
- pretix
- frontend
depends_on:
- pretix_database
- pretix_redis
ports:
- '80'
volumes:
- ${PWD}/.docker/pretix/etc/pretix.cfg:/etc/pretix/pretix.cfg
# Let the pretix container be accessible both internally and externally on the same domain.
container_name: pretix.${COMPOSE_DOMAIN}
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}_pretix.rule=Host(`pretix.${COMPOSE_DOMAIN}`)"
pretix_database:
# https://hub.docker.com/_/postgres
image: postgres
profiles:
- pretix
networks:
- pretix
ports:
- '3306'
volumes:
- .docker/pretix/dumps:/docker-entrypoint-initdb.d
environment:
- POSTGRES_USER=pretix
- POSTGRES_PASSWORD=pretix
- POSTGRES_DATABASE=pretix
pretix_redis:
image: redis:latest
profiles:
- pretix
networks:
- pretix
ports:
- "6379"