Skip to content

Conversation

@akrista
Copy link
Contributor

@akrista akrista commented May 18, 2025

Hey, hope everything is well

This PR aims to add basic Docker support to make self-hosting Eagle a little bit easier.

Some of the commits made are related to:

  • Laravel Octane with OpenSwoole: Dropped this in for a nice performance boost!
  • Laravel Horizon for Redis Queues: Added this as an alternative to handle queues with Redis if needed insted of using the queue:work
  • .env.example Updates: Tweaked this file to include the debugbar_enabled variable and other octane related variables
  • New Database Migration: Added a small migration to pop in the basic records the app needs when it starts up instead of using seeders (mostly for a better startup of the docker container)
  • Dockerfile and Companion Files: Included the necessary files to build the Docker image and get the container running for self-hosting.
  • compose.example.yml: Threw in this example file to show you how you can spin up Eagle using Docker Compose.

Here's a simple way to get it running with Docker Compose:

  1. Copy the compose.example.yml file and rename it to compose.yml.
  2. Set up your .env file (starting from .env.example is a good bet!).
  3. Run docker compose up -d eagle in your terminal.

(Heads up: You might need some extra steps for database or environment variable setup depending on your specific server setup.)

I made a quick live example here: eagle.notakrista.com

Just a note, the base Docker setup here was largely inspired by and adapted from the github.com/exaco/laravel-octane-dockerfile project, which I've actually used before for other personal projects and found quite helpful.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant