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:
|
services:
|
||||||
|
|
||||||
|
# Pretix
|
||||||
pretix:
|
pretix:
|
||||||
|
<<: *service-defaults
|
||||||
image: harbor.aalen.space/sfz.aalen/infra/images/pretix-ctbk:1743074527
|
image: harbor.aalen.space/sfz.aalen/infra/images/pretix-ctbk:1743074527
|
||||||
depends_on: [memcached, valkey]
|
depends_on: [memcached, valkey]
|
||||||
restart: always
|
|
||||||
ports:
|
ports:
|
||||||
- name: web-v6
|
- name: web-v6
|
||||||
target: 80
|
<<: *web
|
||||||
published: 80
|
published: *pretix-port
|
||||||
host_ip: "[::]"
|
host_ip: "[::]"
|
||||||
app_protocol: http
|
|
||||||
- name: web-v4
|
- name: web-v4
|
||||||
target: 80
|
<<: *web
|
||||||
published: 80
|
published: *pretix-port
|
||||||
host_ip: "0.0.0.0"
|
host_ip: "0.0.0.0"
|
||||||
app_protocol: http
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./pretix.cfg:/etc/pretix/pretix.cfg
|
- ./pretix.cfg:/etc/pretix/pretix.cfg
|
||||||
- /var/run/postgresql:/run/postgresql
|
- /var/run/postgresql:/run/postgresql
|
||||||
|
|
@ -24,13 +39,34 @@ services:
|
||||||
- TZ=Europe/Berlin
|
- TZ=Europe/Berlin
|
||||||
env_file: ".env-pretix"
|
env_file: ".env-pretix"
|
||||||
|
|
||||||
# pretalx:
|
# Pretalx
|
||||||
# image: harbor.aalen.space/sfz.aalen/infra/images/pretalx-ctbk:1741346032
|
pretalx:
|
||||||
|
<<: *service-defaults
|
||||||
# databases
|
image: harbor.aalen.space/sfz.aalen/infra/images/pretalx-ctbk:1741346032
|
||||||
memcached:
|
depends_on: [valkey]
|
||||||
image: docker.io/memcached:alpine
|
|
||||||
restart: always
|
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:
|
command:
|
||||||
- --conn-limit=1024
|
- --conn-limit=1024
|
||||||
- --memory-limit=64
|
- --memory-limit=64
|
||||||
|
|
@ -39,8 +75,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /run/memcached:/run/memcached
|
- /run/memcached:/run/memcached
|
||||||
valkey:
|
valkey:
|
||||||
|
<<: *service-defaults
|
||||||
image: ghcr.io/valkey-io/valkey:alpine
|
image: ghcr.io/valkey-io/valkey:alpine
|
||||||
restart: always
|
|
||||||
command:
|
command:
|
||||||
- /etc/valkey.conf
|
- /etc/valkey.conf
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
0
pretalx.cfg
Normal file
0
pretalx.cfg
Normal file
Loading…
Add table
Add a link
Reference in a new issue