linux  projekt  self-hosted

tandoor

Das Buffet bietet viele verschiedene Rezeptverwaltungen... Alles muss probiert werden!
Keine Home Assistant integration gefunden, nur eine Hosting direkt im Home Assistanten.

Install

sudo mkdir -p /opt/tandoor
cd /opt/tandoor
# sudo wget https://raw.githubusercontent.com/vabene1111/recipes/develop/docs/install/docker/plain/docker-compose.yml
# sudo mv docker-compose.yml docker-compose.yaml

sudo nano docker-compose.yaml
 services:
  db_recipes:
    restart: always
    image: postgres:16-alpine
    volumes:
      - ./postgresql:/var/lib/postgresql/data
    env_file:
      - ./.env

  web_recipes:
    restart: always
    image: vabene1111/recipes
    ports:
        - "9443:80"
    env_file:
      - ./.env
    volumes:
      - staticfiles:/opt/recipes/staticfiles
      - ./mediafiles:/opt/recipes/mediafiles
    depends_on:
      - db_recipes

volumes:
  staticfiles:
# sudo wget https://raw.githubusercontent.com/vabene1111/recipes/develop/.env.template -O .env

sudo nano .env
# ---------------------------------------------------------------------------
# This template contains only required options.
# Visit the docs to find more https://docs.tandoor.dev/system/configuration/
# ---------------------------------------------------------------------------

# random secret key, use for example `base64 /dev/urandom | head -c50` to generate one
SECRET_KEY=♯crypt♯

# your default timezone See https://timezonedb.com/time-zones for a list of timezones
TZ=Europe/Berlin

# allowed hosts (see documentation), should be set to your hostname(s) but might be * (default) for some proxies/providers
ALLOWED_HOSTS=tandoor.heister.be

# add only a database password if you want to run with the default postgres, otherwise change settings accordingly
DB_ENGINE=django.db.backends.postgresql
POSTGRES_HOST=db_recipes
POSTGRES_DB=djangodb
POSTGRES_PORT=5432
POSTGRES_USER=djangouser
POSTGRES_PASSWORD=♯crypt♯
docker compose -f /opt/tandoor/docker-compose.yaml up -d
docker compose -f /opt/tandoor/docker-compose.yaml down

ReverseProxy

tandoor.heister.be
	RequestHeader set X-Forwarded-Proto "https"
	Header always set Access-Control-Allow-Origin "*"

	ProxyPreserveHost  On
	ProxyRequests Off
	ProxyPass / http://127.0.0.1:9443/
	ProxyPassReverse / http://127.0.0.1:9443/

Home Assistant integration

Doku

 

Sicherung

 beCloudy   docker   einkaufsliste   linux   projekt   rezepteverwaltung   smarthome