Docker Deployment Guide
Prerequisites
Before starting the deployment, make sure you have:- Docker and Docker Compose installed
- Basic understanding of Docker concepts
- Access to a server or local machine where you want to deploy Usertour
Installation Steps
- Install Docker and Docker Compose
-
Configure Environment Variables
Create a
.envfile or add environment variables to yourdocker-compose.yml. You can use this example file as a reference. For detailed environment variable documentation, see Environment Variables. -
Create Docker Compose Configuration
Choose one of the following deployment options:
Option 1: Local Development Setup
This configuration includes all dependencies (PostgreSQL and Redis) in Docker containers:For local development, make sure to set these environment variables in your.envfile:Option 2: Production Setup
For production environments, you’ll need to:- Deploy Redis and PostgreSQL using cloud services (AWS, Google Cloud, etc.) or build your own infrastructure with high availability
- Update the
.envfile with your Redis and PostgreSQL configuration - Use this simplified configuration:
-
Start Usertour
Run the following command in the directory containing your
docker-compose.yml:If you’re using the latest version of Docker, use:This command will:- Initialize the database
- Run database migrations
- Start the Usertour application on port 8011
Accessing Usertour
-
Initial Access
- Navigate to
http://<your-server-ip>:8011or your configured domain and port - Note: Usertour runs on HTTP by default. For HTTPS, you’ll need to set up a reverse proxy
- Navigate to
-
Set up the first admin account
- Open the site in your browser
- On a fresh self-hosted deployment, Usertour will guide you to create the first System Admin account
- After setup, sign in with that account and open System Admin from the account menu
-
Upgrading older deployments
- If you are upgrading from an older self-hosted version and do not yet have a System Admin, assign one manually before signing in
- A PostgreSQL example is available in the System Admin guide
- If you are running version
0.5.0or earlier, the seeded bootstrap admin is stilllisa@simpson.comwith passwordsecret42