From 92fd964f1af47027ed00848d0c0d67bf0a499e5b Mon Sep 17 00:00:00 2001 From: Dominik Date: Sun, 19 Jan 2025 12:57:01 +0100 Subject: [PATCH] added wygiwyh --- .gitignore | 2 ++ wygiwyh/.env | 20 ++++++++++++++++++ wygiwyh/compose.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 wygiwyh/.env create mode 100644 wygiwyh/compose.yml diff --git a/.gitignore b/.gitignore index 5d3a18c..e124a84 100644 --- a/.gitignore +++ b/.gitignore @@ -69,3 +69,5 @@ ollama/ollama/ ollama/webui/ rustdesk/data/ filezilla/config/ +wygiwyh/postgres_data/ + diff --git a/wygiwyh/.env b/wygiwyh/.env new file mode 100644 index 0000000..b6080b2 --- /dev/null +++ b/wygiwyh/.env @@ -0,0 +1,20 @@ +SERVER_NAME=wygiwyh_server +DB_NAME=wygiwyh_pg +PROCRASTINATE_NAME=wygiwyh_procrastinate + +DEBUG=false +URL = http://localhost:8000 +HTTPS_ENABLED=true +SECRET_KEY= +DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1] +OUTBOUND_PORT=9005 + +SQL_ENGINE=django.db.backends.postgresql +SQL_DATABASE=wygiwyh +SQL_USER=wygiwyh +SQL_PASSWORD=testitest +SQL_HOST=${DB_NAME} +SQL_PORT=5432 + +# Gunicorn +WEB_CONCURRENCY=4 diff --git a/wygiwyh/compose.yml b/wygiwyh/compose.yml new file mode 100644 index 0000000..d79c75e --- /dev/null +++ b/wygiwyh/compose.yml @@ -0,0 +1,49 @@ +# https://github.com/eitchtee/WYGIWYH + +# + +name: wygiwyh + +services: + web: + image: eitchtee/wygiwyh:latest + container_name: ${SERVER_NAME} + command: /start + ports: + - "${OUTBOUND_PORT}:8000" + env_file: + - .env + depends_on: + - db + restart: unless-stopped + networks: + - proxy + + db: + image: postgres:15 + container_name: ${DB_NAME} + restart: unless-stopped + volumes: + - ./postgres_data:/var/lib/postgresql/data/ + environment: + - POSTGRES_USER=${SQL_USER} + - POSTGRES_PASSWORD=${SQL_PASSWORD} + - POSTGRES_DB=${SQL_DATABASE} + networks: + - proxy + + procrastinate: + image: eitchtee/wygiwyh:latest + container_name: ${PROCRASTINATE_NAME} + depends_on: + - db + env_file: + - .env + command: /start-procrastinate + restart: unless-stopped + networks: + - proxy + +networks: + proxy: + external: true