app-store/apps/wikijs/docker-compose.yml

43 lines
1.1 KiB
YAML
Raw Normal View History

2023-03-11 15:38:57 +00:00
version: '3.7'
2023-02-28 21:41:38 +00:00
2023-03-11 15:38:57 +00:00
services:
2023-02-28 21:41:38 +00:00
wikijs:
2023-03-11 15:38:57 +00:00
container_name: wikijs
2023-02-28 21:41:38 +00:00
image: ghcr.io/requarks/wiki:2.5.297
depends_on:
- wikijs-db
environment:
DB_TYPE: postgres
2023-03-11 15:38:57 +00:00
DB_HOST: wikijs-db
2023-02-28 21:41:38 +00:00
DB_PORT: 5432
DB_USER: wikijs
2023-03-11 15:38:57 +00:00
DB_PASS: ${WIKI_JS_DB_PASS}
2023-02-28 21:41:38 +00:00
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
2023-03-11 15:38:57 +00:00
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