fix: remove sysctls and bad command from db service, clean compose file
This commit is contained in:
@@ -2,10 +2,6 @@ services:
|
|||||||
db:
|
db:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# Disable sysctl tuning — required for unprivileged LXC environments
|
|
||||||
command: postgres -c ipc_lock=off
|
|
||||||
sysctls:
|
|
||||||
net.ipv4.ip_unprivileged_port_start: 0
|
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
@@ -51,8 +47,6 @@ services:
|
|||||||
- static_files:/app/staticfiles
|
- static_files:/app/staticfiles
|
||||||
|
|
||||||
# Runs the nightly coordinator status check (django-crontab job)
|
# Runs the nightly coordinator status check (django-crontab job)
|
||||||
# Avoids needing a cron daemon inside the web container, which causes
|
|
||||||
# runc PID errors in unprivileged LXC environments.
|
|
||||||
cron:
|
cron:
|
||||||
build: .
|
build: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user