-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1020 Bytes
/
docker-compose.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
version: '3'
services:
app:
container_name: pretix_app
build:
dockerfile: Dockerfile
context: ./docker/pretix
restart: always
depends_on:
- database
- cache
volumes:
- pretix_data:/data
- ./docker/pretix/pretix.cfg:/etc/pretix/pretix.cfg
- ./docker/pretix/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/pretix/crontab:/tmp/crontab
ports:
- "80:80"
- "443:443"
networks:
- backend
database:
image: postgres:16-alpine3.20
container_name: database
ports:
- "5432:5432"
environment:
- POSTGRES_USER=pretix
- POSTGRES_PASSWORD=pretix
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- backend
cache:
image: redis:alpine3.20
container_name: redis
ports:
- "6379:6379"
restart: always
networks:
- backend
volumes:
postgres_data:
driver: local
pretix_data:
driver: local
networks:
backend:
external: false