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
|
||||
x-pretix-port: &pretix-port 80
|
||||
x-pretalx-port: &pretalx-port 81
|
||||
x-pretix-port: &pretix-port 8080
|
||||
x-pretalx-port: &pretalx-port 8081
|
||||
|
||||
# defaults for web port configs
|
||||
x-web: &web
|
||||
|
|
@ -11,66 +11,83 @@ x-web: &web
|
|||
x-service-defaults: &service-defaults
|
||||
restart: always
|
||||
|
||||
### Containers
|
||||
|
||||
services:
|
||||
|
||||
# Pretix
|
||||
pretix:
|
||||
x-pretix: &pretix-base
|
||||
<<: *service-defaults
|
||||
image: harbor.aalen.space/sfz.aalen/infra/images/pretix-ctbk:1743074527
|
||||
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:
|
||||
- ./pretix.cfg:/etc/pretix/pretix.cfg
|
||||
- /var/run/postgresql:/run/postgresql
|
||||
- /run/valkey:/run/valkey
|
||||
- /run/memcached:/run/memcached
|
||||
- /var/lib/pretix:/data
|
||||
environment:
|
||||
- TZ=Europe/Berlin
|
||||
env_file: ".env-pretix"
|
||||
|
||||
# Pretalx
|
||||
pretalx:
|
||||
<<: *service-defaults
|
||||
image: harbor.aalen.space/sfz.aalen/infra/images/pretalx-ctbk:1741346032
|
||||
depends_on: [valkey]
|
||||
restart: always
|
||||
### Containers
|
||||
|
||||
services:
|
||||
|
||||
# Pretix
|
||||
pretix-web:
|
||||
<<: *pretix-base
|
||||
ports:
|
||||
- name: web-v6
|
||||
<<: *web
|
||||
published: *pretalx-port
|
||||
published: *pretix-port
|
||||
host_ip: "[::]"
|
||||
- name: web-v4
|
||||
<<: *web
|
||||
published: *pretalx-port
|
||||
published: *pretix-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
|
||||
command:
|
||||
- web
|
||||
environment:
|
||||
- TZ=Europe/Berlin
|
||||
env_file: ".env-pretalx"
|
||||
- NUM_WORKERS=2
|
||||
|
||||
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
|
||||
memcached:
|
||||
<<: *service-defaults
|
||||
image: docker.io/memcached:alpine
|
||||
command:
|
||||
- --conn-limit=1024
|
||||
- --memory-limit=64
|
||||
- --threads=4
|
||||
- --conn-limit=100
|
||||
- --memory-limit=16
|
||||
# - --conn-limit=1024
|
||||
# - --memory-limit=64
|
||||
# - --threads=4
|
||||
- -s /run/memcached/memcached.sock
|
||||
volumes:
|
||||
- /run/memcached:/run/memcached
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ registration=Off
|
|||
trust_x_forwarded_for=on
|
||||
[locale]
|
||||
default=en
|
||||
timezone=UTC
|
||||
timezone=Europe/Berlin
|
||||
[database]
|
||||
backend=postgresql
|
||||
host = /run/postgresql
|
||||
|
|
@ -18,6 +18,8 @@ user = pretix
|
|||
[urls]
|
||||
media=/media/
|
||||
static=/static/
|
||||
#[metrics]
|
||||
#enabled=true
|
||||
[mail]
|
||||
from=events@chaostreff-backnang.de
|
||||
host=mxe89f.netcup.net
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue