Jafner.net/archive/docker_config/wikijs/docker-compose.yml
Joey Hafner 6086222503
Reorganize root level of repo.
- Move homelab, Jafner.dev (now called blog) to root.
- Rename "archived projects" -> "archive"
- Rename "active projects" -> "projects"
- Rename "jafner-homebrew" -> "5ehomebrew"
- Rename "docker-llm-amd" -> "local-ai"
2024-07-16 12:17:55 -07:00

49 lines
1017 B
YAML

version: '3'
services:
db:
image: postgres:11-alpine
container_name: wikijs_db
restart: unless-stopped
environment:
POSTGRES_DB: wiki
POSTGRES_PASSWORD: wikijsrocks
POSTGRES_USER: wikijs
networks:
- wikijs
logging:
driver: "none"
volumes:
- wikijs_db:/var/lib/postgresql/data
wiki:
image: requarks/wiki:2
container_name: wikijs_wiki
restart: unless-stopped
depends_on:
- db
networks:
- web
- wikijs
environment:
DB_TYPE: postgres
DB_HOST: db
DB_PORT: 5432
DB_USER: wikijs
DB_PASS: wikijsrocks
DB_NAME: wiki
volumes:
- ${PWD}/id_rsa:/id_rsa
- ${PWD}/id_rsa.pub:/id_rsa.pub
labels:
- traefik.http.routers.wikijs.rule=Host(`wikijs.jafner.net`)
- traefik.http.routers.wikijs.tls.certresolver=lets-encrypt
- traefik.http.services.wikijs.loadbalancer.server.port=3000
volumes:
wikijs_db:
networks:
wikijs:
web:
external: true