added wygiwyh

This commit is contained in:
Dominik 2025-01-19 12:57:01 +01:00
parent d9118c7fcb
commit 92fd964f1a
3 changed files with 71 additions and 0 deletions

2
.gitignore vendored
View File

@ -69,3 +69,5 @@ ollama/ollama/
ollama/webui/
rustdesk/data/
filezilla/config/
wygiwyh/postgres_data/

20
wygiwyh/.env Normal file
View File

@ -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=<GENERATE A SAFE SECRET KEY AND PLACE IT HERE>
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

49
wygiwyh/compose.yml Normal file
View File

@ -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