Gids van github gevolgd, vps. help me met het instellen van ram/vcpu limieten

(1)

this is ubuntu 24 VPS. discourse already using 10gigs of ram. that’s not okay.

It seems like it build a docker run command. While this included

–shm-size=512m

I would prefer apply additional cpu and ram constraints as I don’t want it to suck up 4c12r since other dockers will live here. Can I simply copy the resultant command or is it stored somewhere. I plan to docker stop docker rm to inject

–cpu-shares=1100 --shm-size=512m --memory=4g --memory-swap=8g --kernel-memory=5500m

is there a better way to apply these constraints?

(2)

is “app” really the name of the container? –name app

docker ps shows that app is the only one of the one containers running

(3)

this isn’t munged. the review screen before starting showed my provider smtp domain

DISCOURSE_SMTP_DOMAIN=discourse.example.com

why is it literally this now? how do I fix it. fun fact it was able to email me a confirmation link

(4)

the docker run slightly munged

/usr/bin/docker run --shm-size=512m -d --restart=always -e LANG=en_US.UTF-8 -e RAILS_ENV=production -e UNICORN_WORKERS=8 -e UNICORN_SIDEKIQS=1 -e RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 -e RUBY_GC_HEAP_INIT_SLOTS=400000 -e RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 -e DISCOURSE_DB_SOCKET=/var/run/postgresql -e DISCOURSE_DB_HOST= -e DISCOURSE_DB_PORT= -e DISCOURSE_FORCE_HTTPS=true -e LC_ALL=en_US.UTF-8 -e LANGUAGE=en_US.UTF-8 -e DISCOURSE_HOSTNAME=a.shop -e DISCOURSE_DEVELOPER_EMAILS=x -e DISCOURSE_SMTP_ADDRESS=x -e DISCOURSE_SMTP_PORT=587 -e DISCOURSE_SMTP_USER_NAME=x -e DISCOURSE_SMTP_PASSWORD=Fx -e DISCOURSE_SMTP_DOMAIN=discourse.example.com -e DISCOURSE_NOTIFICATION_EMAIL=x -e LETSENCRYPT_ACCOUNT_EMAIL=x -h hoho-app -e DOCKER_HOST_IP=172.17.0.1 --name app -t -p 80:80 -p 443:443 -v /var/discourse/shared/standalone:/shared -v /var/discourse/shared/standalone/log/var-log:/var/log --mac-address xx local_discourse/app /sbin/boot

I followed these instructions