Compare commits

..

2 commits

Author SHA1 Message Date
39720a5727 fix: hide sensitive information
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-09 14:27:31 +02:00
34e8b78c43 doc: add missing config 2024-07-09 14:27:16 +02:00
2 changed files with 16 additions and 11 deletions

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__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

View file

@ -1,17 +1,12 @@
#!/bin/sh
# vim: set ts=2 sw=2 et ft=bash:
echo "== Loading database parameters from DATABASE_URL..."
eval "$(/usr/local/bin/parse-database-url.sh "${DATABASE_URL:-}" SYMFONY__ENV__DATABASE |sed -e 's/^/export /')"
# Rename variables
SYMFONY__ENV__DATABASE_PASSWORD="$SYMFONY__ENV__DATABASE_PASS"
export SYMFONY__ENV__DATABASE_PASSWORD
env
echo "=== entrypoint"
cat /entrypoint.sh
echo "changing entrypoint..."
echo /entrypoint.sh # "$@"
echo "== Changing entrypoint..."
exec /entrypoint.sh "$@"