Docker Compose template for the kcal app.
Go to file
Christopher C. Wells d8c22fd816 Finalize README 2021-04-24 13:50:14 -07:00
etc Finalize example config 2021-04-24 13:46:14 -07:00
.env.example Do not queue media conversions by default 2021-04-24 13:20:38 -07:00
.gitignore Initial commit 2021-04-24 09:46:52 -07:00
LICENSE Initial commit 2021-04-24 09:46:52 -07:00
README.md Finalize README 2021-04-24 13:50:14 -07:00
docker-compose.yml Finalize example config 2021-04-24 13:46:14 -07:00

README.md

kcal for Docker!

Docker build status Docker version Docker pulls Docker image size

This is a template repository for running kcal with Docker Compose. Visit the main kcal repository for more information about the application.

Getting Started

1. Clone

Clone this repo.

git clone https://github.com/kcal-app/kcal-docker.git

2. Create .env file.

cd kcal-docker
cp .env.example .env

3. Generate and add an APP_KEY to the .env file.

docker-compose run app php artisan key:generate --show

This command will output a suitable key. Copy the key value and add it to the APP_KEY value in the .env file. This also a good time to review make other changes to the .env file (e.g. set the APP_TIMEZONE and APP_URL values as desired).

4. Launch! 🚀

docker-compose up -d

5. Set up application.

docker-compose exec app php artisan optimize
docker-compose exec app php artisan migrate
docker-compose exec app php artisan elastic:migrate

6. Create initial user.

docker-compose exec app php artisan user:add --admin

7. Log in!

Navigate to http://127.0.0.1/ (or the APP_URL) and log in with the user created in the previous step.

Configuration

Kcal can be configured in various ways using environment variables from the .env file. When changes are made to the environment variables restart the containers and re-run the "optimize" command:

docker-compose restart
docker-compose exec app php artisan optimize

See the kcal configuration documentation for more information about what can be configured and how.