doc: add missing config

This commit is contained in:
Glenn Y. Rolland 2024-07-09 14:27:16 +02:00
parent 4ef95e32c9
commit 34e8b78c43

View file

@ -35,12 +35,21 @@ Setup configuration
dokku config:set --no-restart $APP SYMFONY__ENV__FROM_EMAIL=$APP@example.com dokku config:set --no-restart $APP SYMFONY__ENV__FROM_EMAIL=$APP@example.com
dokku config:set --no-restart $APP SYMFONY__ENV__DOMAIN_NAME=https://your-$APP-instance.$APP.org dokku config:set --no-restart $APP SYMFONY__ENV__DOMAIN_NAME=https://your-$APP-instance.$APP.org
dokku config:set --no-restart $APP SYMFONY__ENV__SERVER_NAME="Your $APP instance" dokku config:set --no-restart $APP SYMFONY__ENV__SERVER_NAME="Your $APP instance"
dokku config:set --no-restart $APP SYMFONY__ENV__SERVER_NAME="Your $APP instance"
dokku config:set --no-restart $APP SYMFONY__ENV__FOSUSER_REGISTRATION=false
dokku config:set --no-restart $APP SYMFONY__ENV__FOSUSER_CONFIRMATION=false
Setup letsencrypt Setup domain and TLS with letsencrypt
dokku domains:add bag bag.danaos.apps.glenux.net
dokku letsencrypt:set $APP email $APP@example.com dokku letsencrypt:set $APP email $APP@example.com
dokku letsencrypt:enable $APP dokku letsencrypt:enable $APP
Limit resources
dokku resource:limit --memory 1000m bag
dokku resource:limit --cpu 1 bag
Deploy Deploy
git remote add dokku dokku@example.com:$APP git remote add dokku dokku@example.com:$APP
@ -48,10 +57,11 @@ Deploy
## Post-install ## Post-install
docker compose run $APP -- exec su -c "bin/console list --env=prod" -s /bin/sh nobody docker exec -it $APP.web.1 su -c "/usr/local/bin/entrypoint-wrapper.sh migrate"
docker exec -it $APP.web.1 su -c "bin/console list --env=prod" -s /bin/sh nobody
docker compose exec $APP su -c "bin/console fos:user:create --super --env=prod" -s /bin/sh nobody docker exec -it $APP.web.1 su -c "bin/console fos:user:create --super-admin --env=prod" -s /bin/sh nobody
docker compose exec $APP su -c "bin/console fos:user:promote --super --env=prod" -s /bin/sh nobody docker exec -it $APP.web.1 su -c "bin/console fos:user:promote --super --env=prod" -s /bin/sh nobody
## Setup on host ## Setup on host