Server setup
For quick setup, use the docker-compose.yml
.
https://github.com/amalshaji/portr/blob/main/docker-compose.yaml
Services
The compose file has 4 services
- caddy - the reverse proxy
- admin - the admin server
- tunnel - the tunnel server
- postgres - the postgres database
Setup environment variables
Once you copy the compose file, create a .env
with the following values.
Generate an encryption key using the following command
If you want to run postgres separately and not as a service, you can exclude the following environment values
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
Run docker compose up
to start the servers. Once the servers are up, go to example.com and login in to the admin.
First login will be treated as a superuser.