refactor docker compose
This commit is contained in:
parent
7286792a7b
commit
2044ebb81d
2 changed files with 50 additions and 14 deletions
|
|
@ -1,19 +1,34 @@
|
|||
# useful variables
|
||||
x-pretix-port: &pretix-port 80
|
||||
x-pretalx-port: &pretalx-port 81
|
||||
|
||||
# defaults for web port configs
|
||||
x-web: &web
|
||||
target: 80
|
||||
app_protocol: http
|
||||
|
||||
# defaults for all services
|
||||
x-service-defaults: &service-defaults
|
||||
restart: always
|
||||
|
||||
### Containers
|
||||
|
||||
services:
|
||||
|
||||
# Pretix
|
||||
pretix:
|
||||
<<: *service-defaults
|
||||
image: harbor.aalen.space/sfz.aalen/infra/images/pretix-ctbk:1743074527
|
||||
depends_on: [memcached, valkey]
|
||||
restart: always
|
||||
ports:
|
||||
- name: web-v6
|
||||
target: 80
|
||||
published: 80
|
||||
<<: *web
|
||||
published: *pretix-port
|
||||
host_ip: "[::]"
|
||||
app_protocol: http
|
||||
- name: web-v4
|
||||
target: 80
|
||||
published: 80
|
||||
<<: *web
|
||||
published: *pretix-port
|
||||
host_ip: "0.0.0.0"
|
||||
app_protocol: http
|
||||
volumes:
|
||||
- ./pretix.cfg:/etc/pretix/pretix.cfg
|
||||
- /var/run/postgresql:/run/postgresql
|
||||
|
|
@ -24,13 +39,34 @@ services:
|
|||
- TZ=Europe/Berlin
|
||||
env_file: ".env-pretix"
|
||||
|
||||
# pretalx:
|
||||
# image: harbor.aalen.space/sfz.aalen/infra/images/pretalx-ctbk:1741346032
|
||||
|
||||
# databases
|
||||
memcached:
|
||||
image: docker.io/memcached:alpine
|
||||
# Pretalx
|
||||
pretalx:
|
||||
<<: *service-defaults
|
||||
image: harbor.aalen.space/sfz.aalen/infra/images/pretalx-ctbk:1741346032
|
||||
depends_on: [valkey]
|
||||
restart: always
|
||||
ports:
|
||||
- name: web-v6
|
||||
<<: *web
|
||||
published: *pretalx-port
|
||||
host_ip: "[::]"
|
||||
- name: web-v4
|
||||
<<: *web
|
||||
published: *pretalx-port
|
||||
host_ip: "0.0.0.0"
|
||||
volumes:
|
||||
- ./pretalx.cfg:/etc/pretalx/pretalx.cfg
|
||||
- /var/run/postgresql:/run/postgresql
|
||||
- /run/valkey:/run/valkey
|
||||
- /var/lib/pretix:/data
|
||||
environment:
|
||||
- TZ=Europe/Berlin
|
||||
env_file: ".env-pretalx"
|
||||
|
||||
# Cache databases
|
||||
memcached:
|
||||
<<: *service-defaults
|
||||
image: docker.io/memcached:alpine
|
||||
command:
|
||||
- --conn-limit=1024
|
||||
- --memory-limit=64
|
||||
|
|
@ -39,8 +75,8 @@ services:
|
|||
volumes:
|
||||
- /run/memcached:/run/memcached
|
||||
valkey:
|
||||
<<: *service-defaults
|
||||
image: ghcr.io/valkey-io/valkey:alpine
|
||||
restart: always
|
||||
command:
|
||||
- /etc/valkey.conf
|
||||
volumes:
|
||||
|
|
|
|||
0
pretalx.cfg
Normal file
0
pretalx.cfg
Normal file
Loading…
Add table
Add a link
Reference in a new issue