docker compose template für havelwerk wiki erstellt

This commit is contained in:
bmen 2023-02-20 21:56:07 +00:00
parent 41076dea06
commit ac0b712b28
1 changed files with 27 additions and 0 deletions

27
docker-compose.yml.j2 Normal file
View File

@ -0,0 +1,27 @@
version: "3"
services:
db:
image: postgres:{{ wikijs.postgresql_release }}
environment:
POSTGRES_DB: {{ havelwerk.wikijs.postgresql_db }}
POSTGRES_PASSWORD: {{ havelwerk.wikijs.postgresql_password }}
POSTGRES_USER: {{ havelwerk.wikijs.postgresql_user }}
logging:
driver: "none"
restart: unless-stopped
volumes:
- /home/docker/data/{{ havelwerk.wikijs.name }}/db-data:/var/lib/postgresql/data
wiki:
image: ghcr.io/requarks/wiki:{{ wikijs.release }}
depends_on:
- db
environment:
DB_TYPE: postgres
DB_HOST: db
DB_PORT: 5432
DB_USER: {{ havelwerk.wikijs.postgresql_user }}
DB_PASS: {{ havelwerk.wikijs.postgresql_password }}
DB_NAME: {{ havelwerk.wikijs.postgresql_db }}
restart: unless-stopped