Skip to content

Instantly share code, notes, and snippets.

@codingmatty
Created April 27, 2024 20:20
Show Gist options
  • Save codingmatty/c98c10e6e44cb8db28a24a4f8fe6f753 to your computer and use it in GitHub Desktop.
Save codingmatty/c98c10e6e44cb8db28a24a4f8fe6f753 to your computer and use it in GitHub Desktop.
Reference for setting up an application with Dokku
# These lines only need to be ran once:
dokku plugin:install postgres
dokku letsencrypt:set --global email <your-email@email.com>
dokku letsencrypt:cron-job --add
# This script is meant to be used as a reference to setup an application with a postgres database pointing to a git repository with a Dockerfile
dokku apps:create linkwarden
dokku postgres:create linkwarden-db
dokku postgres:link linkwarden-db linkwarden
dokku git:sync linkwarden git@github.com:linkwarden/linkwarden.git main
dokku config:set linkwarden NEXTAUTH_SECRET=`openssl rand -hex 32`
dokku ps:rebuild linkwarden
dokku ports:add linkwarden http:80:5000
dokku domains:add linkwarden linkwarden.your-domain.com
dokku letsencrypt:enabled linkwarden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment