From 34e8b78c43114a5ccf019b580be9ae01c5086617 Mon Sep 17 00:00:00 2001 From: Glenn Date: Tue, 9 Jul 2024 14:27:16 +0200 Subject: [PATCH] doc: add missing config --- README.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 23b60ec..a5e21c5 100644 --- a/README.md +++ b/README.md @@ -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__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__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:enable $APP +Limit resources + + dokku resource:limit --memory 1000m bag + dokku resource:limit --cpu 1 bag + Deploy git remote add dokku dokku@example.com:$APP @@ -48,10 +57,11 @@ Deploy ## 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 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:create --super-admin --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