To start using this container, start by cloning the repository:
git clone https://github.com/estudio-hawara/kuma-for-docker.git
cd kuma-for-docker
Once you have cloned the repository, create a new .env
file and set your safe passwords there.
cp env.example .env
To start the container with minimum settings, just run:
docker compose up -d
Which is equivalent to loading the default docker-compose.yml
:
docker compose -f docker-compose.yml up -d
To start the container with the 3306 port binded to the host, use the docker-compose.port.yml
file:
docker compose -f docker-compose.yml -f docker-compose.port.yml up -d
To start the container with Traefik support, use the docker-compose.traefik.yml
file:
docker compose -f docker-compose.yml -f docker-compose.traefik.yml up -d
Traefik support works very well with its corresponding sibling project: traefik-for-docker.
To standardize calling Docker from the project root, the dc
filename has been added to this project's .gitignore
.
You are encouraged to create it either if you will be only using the standard file:
#!/bin/bash
docker compose -f docker-compose.yml "$@"
... or if you will also be using the open port file:
#!/bin/bash
docker compose -f docker-compose.yml -f docker-compose.port.yml "$@"
... or for usage with Traefik:
#!/bin/bash
docker compose -f docker-compose.yml -f docker-compose.traefik.yml "$@"
Thanks to this, and after giving executing permissions to the new file, you will be able to use this short hand:
# chmod +x dc
./dc up -d