Docker Compose Example
This page provides a complete Docker Compose configuration for running Hyppot with PostgreSQL. The example includes the necessary services, volumes, and environment variables.
version: '3.8'
services:
hyppot:
image: ghcr.io/hyppot/hyppot-server:latest
container_name: hyppot-server
ports:
- "8080:8080"
volumes:
- hyppot_logs:/app/storage/logs
environment:
- DB_CONNECTION_STRING=Host=postgres;Database=hyppotdb;Username=postgres;Password=postgres;
depends_on:
- postgres
restart: unless-stopped
postgres:
image: postgres:15
container_name: hyppot-postgres
environment:
- POSTGRES_DB=hyppotdb
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
volumes:
hyppot_logs:
driver: local
postgres_data:
driver: local
How to Use
- Copy the configuration: Copy the
docker-compose.ymlexample above - Save to file: Create a
docker-compose.ymlfile in your project directory - Customize settings: Update environment variables, ports, and passwords as needed
- Run the stack: Execute
docker-compose up -d - Access Hyppot: Navigate to
http://localhost:8080/hyppot/panel
Configuration Tips
Security Considerations
Production Considerations
Important: The examples above show basic configuration options for demonstration purposes. For production deployments, implement proper security measures including strong passwords, secret management (Docker secrets or external secret stores), regular backups, monitoring, and access controls. Never use default passwords in production environments!
- Load Balancing: To avoid migration conflicts, start instances sequentially
- Resource limits: Set memory and CPU limits for containers
Next Steps
- Configure for production - Set up proper security and monitoring
- Create experiments - Learn how to set up A/B tests
- Integrate with your app - Add Hyppot to your application