github.com/ysbaddaden/swarmit
main / published Apr 11, 2024 / repository
Swarmit
Docker Swarm User Interface
Status
Experimental.
Requirements
Requirements:
- Docker Swarm, either as a single manager node, or as a full featured manager(s) + worker(s) cluster;
- Google OAuth API service for authenticating users.
- PostgreSQL database.
Setup
This is a Crystal application, so you must install Crystal and Shards.
Compile the application:
$ shards build --release
Export environment variables:
DOCKER_HOST(optional, defaults tounix:///var/run/docker.sock)DATABASE_URL=postgres://user:password@host/databaseorPGHOST,PGPORT, ...GOOGLE_OAUTH_CLIENT_IDGOOGLE_OAUTH_CLIENT_SECRET
On initial setup, populate the PostgreSQL database from db/structure.sql. On
upgrade, you should run the individual database migrations:
$ crystal i bin/migrate.cr
Run the application. It can run outside the Swarm (useful in development), but for production it should run within the Swarm.
bin/swarmit
TODO: Dockerfile and compose.yml
License
Distributed under CECILL v2.1.
See LICENSE (English) and LICENSE-FR (French) for details.
Authors
- Julien Portalier julien@portalier.com