Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.75 KB

docker.md

File metadata and controls

49 lines (33 loc) · 1.75 KB

Docker

Docker Compose is the recommended method to run stimmungskalender in production. Below are the steps to deploy stimmungskalender with Docker Compose.

Step 1 - Download the required files

Create a directory of your choice (e.g. ./stimmungskalender) to hold the docker-compose.yml file.

mkdir ./stimmungskalender && cd ./stimmungskalender

Download docker-compose.yml by running the following commands:

wget -O docker-compose.yml https://raw.githubusercontent.com/rain0r/stimmungskalender/refs/heads/master/docker-compose.yml

Step 2 - Edit docker-compose.yml

Open the file docker-compose.yml with your favorite editor and adjust some settings:

Under app > environment, there are some settings you may want to edit:

  • ALLOWED_HOSTS: add the external URL of your stimmungskalender installation
  • SECRET_KEY: should be set to a unique, unpredictable value Django Docs
  • TIME_ZONE : the time zone for this installation (default: Europe/Berlin)
  • FIRST_DAY_OF_WEEK: 0 sunday, 1: monday (default)
  • LANGUAGE_CODE: Django Docs (default: de-de)

Now, initialise the database and create the first user. You will be prompted for a username, a password and an email address. You can leave the email address empty.

docker compose run app first_run

Step 3 - Start the containers

From the directory you created in Step 1 (which should now contain your customized docker-compose.yml), run the following command to start stimmungskalender as a background service:

docker compose up -d

Visit http://localhost:7890 and log in with the user you just created.