-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.06 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
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:18-alpine3.23
container_name: database
ports:
- "5432:5432"
environment:
- POSTGRES_USER=pretix
- POSTGRES_PASSWORD=pretix
volumes:
- postgres_data:/var/lib/postgresql
networks:
- backend
cache:
image: redis:alpine3.23
container_name: redis
ports:
- "6379:6379"
restart: always
networks:
- backend
volumes:
postgres_data:
driver: local
pretix_data:
driver: local
networks:
backend:
driver: bridge
driver_opts:
com.docker.network.bridge.host_binding_ipv4: "127.0.0.1"