Docker Setup | FlightStack
Docker Setup
Section titled “Docker Setup”The quickest way to self-host FlightStack.
Prerequisites
Section titled “Prerequisites”- Docker 20+
- Docker Compose 2+
- 2GB RAM
Installation
Section titled “Installation”# Once you have the bundlecd flightstack-selfhost
# Configurecp .env.example .envnano .env
# Startdocker-compose up -d
# View logsdocker-compose logs -fEnvironment Variables
Section titled “Environment Variables”Key settings in .env:
# DatabasePOSTGRES_HOST=postgresPOSTGRES_DB=flightstackPOSTGRES_USER=flightstackPOSTGRES_PASSWORD=secure-password
# Sign-in tokensJwtSettings__Key=a-long-random-secret
# Email verification and password reset (Resend)Email__ResendApiKey=re_xxxEmail__FromEmail=noreply@your-domain.comEmail__BaseUrl=https://app.your-domain.com
# Google sign-in (optional)Google__ClientId=xxx.apps.googleusercontent.comGoogle__ClientSecret=xxx
# Apple sign-in (optional)Apple__ServicesId=com.your-domain.signinApple__TeamId=XXXXXXXXXXUpdating
Section titled “Updating”docker-compose pulldocker-compose up -dBackup
Section titled “Backup”docker-compose exec postgres pg_dump -U flightstack flightstack > backup.sql