Skip to content

ravenbroetzmann/compose-to-easypanel

Repository files navigation

Docker Compose to Easypanel

Easypanel is a Beautiful, Easy to use Server Control Panel based on Docker easypanel.io.

with this little App you are able to create an Easypanel Schema based on your docker-compose file

Quickstart

Ui App

View on Netlify

goto compose-to-easypanel.netlify.app

Local

  1. Clone The Repo gh repo clone ravenbroetzmann/compose-to-easypanel
  2. cd compose-to-easypanel
  3. yarn install,
  4. yarn dev
  5. the app should now be available on localhost:3000

Example

Creating an Mysql application with Adminer as Dashboard

Write The Compose

./docker-compose.yml

version: "3"
services:
  adminer:
    image: adminer
    restart: always
    ports:
      - 8080:8080

  db:
    image: mysql
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: examplePassword
      MYSQL_PASSWORD: examplePasswordNonRoot

Go to the UI

paste the file contents in the left hand side textarea on the website

Copy the Schema

after running this command you can view and edit the schema on the right hand side

Generated Schema:

{
  "services": [
    {
      "type": "app",
      "data": {
        "projectName": "test",
        "serviceName": "adminer",
        "source": { "type": "image", "image": "adminer" },
        "ports": [{ "published": 8080, "target": 8080 }]
      }
    },
    {
      "type": "mysql",
      "data": {
        "projectName": "test",
        "serviceName": "db",
        "rootPassword": "examplePassword",
        "password": "examplePasswordNonRoot"
      }
    }
  ]
}

Create The Services

after you copied the schema you can go to your easypanel Dashboard. Go to your-project, select templates and scroll all the way down to developer an then click Create from Schema

Please note: Domains and Proxys are currently not supported, you need to add these manually via the Easypanel dashboard

Supported Docker Compose Properties

  • image
  • container_name
  • ports
  • environment
  • volumes
  • command

Image

Docker Compose File

# ...
image: easypanel/easypanel

Generated Schema

{
  "source": {
    "type": "image",
    "image": "easypanel/easypanel"
  }
}

Container Name

The property container_name represent