OVHserver/opt/03-business/wikijs/docker-compose.yml
SamoilenkoVadym a987d45fbc chore: initial infrastructure setup with Syncthing, Git and documentation
Set up three-tier synchronization: Syncthing (real-time), GitHub (version control), rsync (disaster recovery). Includes complete documentation for future Claude sessions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 16:41:12 +00:00

39 lines
1.5 KiB
YAML

version: "3.8"
services:
wiki:
image: ghcr.io/requarks/wiki:2
container_name: wikijs
restart: unless-stopped
environment:
# --- Подключение к вашей существующей БД ---
DB_TYPE: postgres
DB_HOST: postgres-main
DB_PORT: 5432
DB_USER: wikijs_user
DB_NAME: wikijs
DB_PASS: 'sT9pLqV2!kG4wJ7aC1rE' # Пароль, который мы сохранили в Vault
SESSION_SECRET: WikiJsSessionSecret2025!
networks:
- traefik-public # Сеть для доступа извне (через Traefik)
- database-internal # Сеть для доступа к БД
volumes:
- wiki-data:/wiki/data # Создаем том для данных Wiki.js (config.yml, файлы и т.д.)
labels:
# --- Конфигурация Traefik ---
- "traefik.enable=true"
- "traefik.http.routers.wikijs.rule=Host(`info.ai-impress.com`)"
- "traefik.http.routers.wikijs.entrypoints=websecure"
- "traefik.http.routers.wikijs.tls.certresolver=letsencrypt" # (Используем ваш стандартный резолвер)
- "traefik.http.services.wikijs.loadbalancer.server.port=3000" # (Внутренний порт Wiki.js)
volumes:
wiki-data:
name: wikijs_data # Даем тому понятное имя в системе
networks:
# --- Указываем, что эти сети уже существуют ---
traefik-public:
external: true
database-internal:
external: true