app-store/apps/wikijs/docker-compose.yml
2023-03-11 16:38:57 +01:00

43 lines
1.1 KiB
YAML

version: '3.7'
services:
wikijs:
container_name: wikijs
image: ghcr.io/requarks/wiki:2.5.297
depends_on:
- wikijs-db
environment:
DB_TYPE: postgres
DB_HOST: wikijs-db
DB_PORT: 5432
DB_USER: wikijs
DB_PASS: ${WIKI_JS_DB_PASS}
DB_NAME: wiki
restart: unless-stopped
ports:
- ${APP_PORT}:3000
networks:
- tipi_main_network
labels:
traefik.enable: ${APP_EXPOSED}
traefik.http.routers.wikijs.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.wikijs.entrypoints: websecure
traefik.http.routers.wikijs.service: wikijs
traefik.http.routers.wikijs.tls.certresolver: myresolver
traefik.http.services.wikijs.loadbalancer.server.port: 3000
wikijs-db:
container_name: wikijs-db
image: postgres:11-alpine
environment:
POSTGRES_DB: wiki
POSTGRES_PASSWORD: ${WIKI_JS_DB_PASS}
POSTGRES_USER: wikijs
logging:
driver: 'none'
restart: unless-stopped
networks:
- tipi_main_network
volumes:
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data