really fucked compose split to reduce memory usage
This commit is contained in:
parent
c36aac5dbb
commit
88cb20a9c7
2 changed files with 56 additions and 37 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# useful variables
|
# useful variables
|
||||||
x-pretix-port: &pretix-port 80
|
x-pretix-port: &pretix-port 8080
|
||||||
x-pretalx-port: &pretalx-port 81
|
x-pretalx-port: &pretalx-port 8081
|
||||||
|
|
||||||
# defaults for web port configs
|
# defaults for web port configs
|
||||||
x-web: &web
|
x-web: &web
|
||||||
|
|
@ -11,66 +11,83 @@ x-web: &web
|
||||||
x-service-defaults: &service-defaults
|
x-service-defaults: &service-defaults
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
### Containers
|
x-pretix: &pretix-base
|
||||||
|
|
||||||
services:
|
|
||||||
|
|
||||||
# Pretix
|
|
||||||
pretix:
|
|
||||||
<<: *service-defaults
|
<<: *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]
|
||||||
ports:
|
|
||||||
- name: web-v6
|
|
||||||
<<: *web
|
|
||||||
published: *pretix-port
|
|
||||||
host_ip: "[::]"
|
|
||||||
- name: web-v4
|
|
||||||
<<: *web
|
|
||||||
published: *pretix-port
|
|
||||||
host_ip: "0.0.0.0"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./pretix.cfg:/etc/pretix/pretix.cfg
|
- ./pretix.cfg:/etc/pretix/pretix.cfg
|
||||||
- /var/run/postgresql:/run/postgresql
|
- /var/run/postgresql:/run/postgresql
|
||||||
- /run/valkey:/run/valkey
|
- /run/valkey:/run/valkey
|
||||||
- /run/memcached:/run/memcached
|
- /run/memcached:/run/memcached
|
||||||
- /var/lib/pretix:/data
|
- /var/lib/pretix:/data
|
||||||
environment:
|
|
||||||
- TZ=Europe/Berlin
|
|
||||||
env_file: ".env-pretix"
|
env_file: ".env-pretix"
|
||||||
|
|
||||||
# Pretalx
|
### Containers
|
||||||
pretalx:
|
|
||||||
<<: *service-defaults
|
services:
|
||||||
image: harbor.aalen.space/sfz.aalen/infra/images/pretalx-ctbk:1741346032
|
|
||||||
depends_on: [valkey]
|
# Pretix
|
||||||
restart: always
|
pretix-web:
|
||||||
|
<<: *pretix-base
|
||||||
ports:
|
ports:
|
||||||
- name: web-v6
|
- name: web-v6
|
||||||
<<: *web
|
<<: *web
|
||||||
published: *pretalx-port
|
published: *pretix-port
|
||||||
host_ip: "[::]"
|
host_ip: "[::]"
|
||||||
- name: web-v4
|
- name: web-v4
|
||||||
<<: *web
|
<<: *web
|
||||||
published: *pretalx-port
|
published: *pretix-port
|
||||||
host_ip: "0.0.0.0"
|
host_ip: "0.0.0.0"
|
||||||
volumes:
|
command:
|
||||||
- ./pretalx.cfg:/etc/pretalx/pretalx.cfg
|
- web
|
||||||
- /var/run/postgresql:/run/postgresql
|
|
||||||
- /run/valkey:/run/valkey
|
|
||||||
- /var/lib/pretix:/data
|
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Berlin
|
- NUM_WORKERS=2
|
||||||
env_file: ".env-pretalx"
|
|
||||||
|
pretix-task-queue:
|
||||||
|
<<: *pretix-base
|
||||||
|
command:
|
||||||
|
- taskworker
|
||||||
|
- --concurrency
|
||||||
|
- 2
|
||||||
|
environment:
|
||||||
|
- AUTOMIGRATE=skip # migration is run by the web worker
|
||||||
|
|
||||||
|
# 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
|
# Cache databases
|
||||||
memcached:
|
memcached:
|
||||||
<<: *service-defaults
|
<<: *service-defaults
|
||||||
image: docker.io/memcached:alpine
|
image: docker.io/memcached:alpine
|
||||||
command:
|
command:
|
||||||
- --conn-limit=1024
|
|
||||||
- --memory-limit=64
|
|
||||||
- --threads=4
|
- --threads=4
|
||||||
|
- --conn-limit=100
|
||||||
|
- --memory-limit=16
|
||||||
|
# - --conn-limit=1024
|
||||||
|
# - --memory-limit=64
|
||||||
|
# - --threads=4
|
||||||
- -s /run/memcached/memcached.sock
|
- -s /run/memcached/memcached.sock
|
||||||
volumes:
|
volumes:
|
||||||
- /run/memcached:/run/memcached
|
- /run/memcached:/run/memcached
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ registration=Off
|
||||||
trust_x_forwarded_for=on
|
trust_x_forwarded_for=on
|
||||||
[locale]
|
[locale]
|
||||||
default=en
|
default=en
|
||||||
timezone=UTC
|
timezone=Europe/Berlin
|
||||||
[database]
|
[database]
|
||||||
backend=postgresql
|
backend=postgresql
|
||||||
host = /run/postgresql
|
host = /run/postgresql
|
||||||
|
|
@ -18,6 +18,8 @@ user = pretix
|
||||||
[urls]
|
[urls]
|
||||||
media=/media/
|
media=/media/
|
||||||
static=/static/
|
static=/static/
|
||||||
|
#[metrics]
|
||||||
|
#enabled=true
|
||||||
[mail]
|
[mail]
|
||||||
from=events@chaostreff-backnang.de
|
from=events@chaostreff-backnang.de
|
||||||
host=mxe89f.netcup.net
|
host=mxe89f.netcup.net
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue