Docker Setup
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”# Clonegit clone https://github.com/voostack/flightstack-selfhostcd 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
# JWTJWT_SECRET=your-secret-keyJWT_ISSUER=https://your-domain.com
# GitHub OAuth (optional)GITHUB_CLIENT_ID=xxxGITHUB_CLIENT_SECRET=xxxUpdating
Section titled “Updating”docker-compose pulldocker-compose up -dBackup
Section titled “Backup”docker-compose exec postgres pg_dump -U flightstack flightstack > backup.sql