2025-10-25 13:52:01 +02:00
|
|
|
name: "docker.compose"
|
|
|
|
|
version: "1.0.0"
|
|
|
|
|
description: "Valknar's Stacks"
|
|
|
|
|
author: "valknar@pivoine.art"
|
|
|
|
|
license: "private"
|
|
|
|
|
|
|
|
|
|
envs:
|
|
|
|
|
default:
|
|
|
|
|
# Common
|
|
|
|
|
ADMIN_EMAIL: valknar@pivoine.art
|
2025-10-26 11:05:19 +01:00
|
|
|
NETWORK_NAME: falcon_network
|
2025-10-25 13:52:01 +02:00
|
|
|
TIMEZONE: Europe/Berlin
|
|
|
|
|
# Core
|
|
|
|
|
CORE_COMPOSE_PROJECT_NAME: core
|
|
|
|
|
CORE_DB_HOST: postgres
|
|
|
|
|
CORE_DB_PORT: 5432
|
|
|
|
|
CORE_REDIS_HOST: redis
|
|
|
|
|
CORE_REDIS_PORT: 6379
|
|
|
|
|
CORE_REDIS_IMAGE: redis:7-alpine
|
|
|
|
|
CORE_POSTGRES_IMAGE: postgres:16-alpine
|
|
|
|
|
# VPN
|
|
|
|
|
VPN_TRAEFIK_ENABLED: true
|
|
|
|
|
VPN_COMPOSE_PROJECT_NAME: vpn
|
|
|
|
|
VPN_DOCKER_IMAGE: ghcr.io/wg-easy/wg-easy:latest
|
|
|
|
|
VPN_TRAEFIK_HOST: vpn.pivoine.art
|
|
|
|
|
# Track
|
|
|
|
|
TRACK_TRAEFIK_ENABLED: true
|
|
|
|
|
TRACK_COMPOSE_PROJECT_NAME: track
|
|
|
|
|
TRACK_DOCKER_IMAGE: ghcr.io/umami-software/umami:postgresql-latest
|
2025-10-26 11:52:01 +01:00
|
|
|
TRACK_TRAEFIK_HOST: umami.pivoine.art
|
2025-10-25 13:52:01 +02:00
|
|
|
TRACK_DB_NAME: umami
|
2025-10-26 17:05:56 +01:00
|
|
|
# AWSM
|
|
|
|
|
AWESOME_TRAEFIK_ENABLED: true
|
|
|
|
|
AWESOME_COMPOSE_PROJECT_NAME: awesome
|
|
|
|
|
AWESOME_TRAEFIK_HOST: awesome.pivoine.art
|
2025-10-25 13:52:01 +02:00
|
|
|
# Sexy
|
|
|
|
|
SEXY_TRAEFIK_ENABLED: true
|
|
|
|
|
SEXY_COMPOSE_PROJECT_NAME: sexy
|
|
|
|
|
SEXY_TRAEFIK_HOST: sexy.pivoine.art
|
|
|
|
|
SEXY_DIRECTUS_IMAGE: directus/directus:11.12.0
|
2025-10-26 10:54:01 +01:00
|
|
|
SEXY_FRONTEND_IMAGE: ghcr.io/valknarxxx/sexy:latest
|
2025-10-25 13:52:01 +02:00
|
|
|
SEXY_DB_NAME: directus
|
|
|
|
|
SEXY_PUBLIC_URL: https://sexy.pivoine.art/api
|
|
|
|
|
SEXY_CORS_ORIGIN: https://sexy.pivoine.art
|
|
|
|
|
SEXY_SESSION_COOKIE_DOMAIN: sexy.pivoine.art
|
|
|
|
|
SEXY_CONTENT_SECURITY_POLICY_DIRECTIVES__FRAME_SRC: https://sexy.pivoine.art
|
|
|
|
|
SEXY_USER_REGISTER_URL_ALLOW_LIST: https://sexy.pivoine.art/signup/verify
|
|
|
|
|
SEXY_PASSWORD_RESET_URL_ALLOW_LIST: https://sexy.pivoine.art/password/reset
|
2025-10-26 12:33:05 +01:00
|
|
|
SEXY_FRONTEND_PUBLIC_API_URL: https://sexy.pivoine.art/api
|
|
|
|
|
SEXY_FRONTEND_PUBLIC_URL: https://sexy.pivoine.art
|
2025-10-25 13:52:01 +02:00
|
|
|
# Gotify
|
|
|
|
|
GOTIFY_TRAEFIK_ENABLED: true
|
2025-10-26 17:52:57 +01:00
|
|
|
GOTIFY_COMPOSE_PROJECT_NAME: messaging
|
2025-10-25 13:52:01 +02:00
|
|
|
GOTIFY_IMAGE: gotify/server:latest
|
|
|
|
|
GOTIFY_TRAEFIK_HOST: gotify.pivoine.art
|
feat: add Scrapy, n8n, and Filestash stacks to Falcon
Added three new service stacks to the docker-compose infrastructure:
- **Scrapy stack** (scrapy.pivoine.art):
- scrapyd: Web scraping daemon with web interface (port 6800)
- scrapy: Development container for spider commands
- scrapyrt: Real-time API for running spiders (port 9080)
- **n8n stack** (n8n.pivoine.art):
- Workflow automation platform with PostgreSQL backend
- 200+ integrations for automated tasks
- Runners enabled for task execution
- Webhook support for external triggers
- **Filestash stack** (stash.pivoine.art):
- Web-based file manager with multi-backend support
- Supports SFTP, S3, Dropbox, Google Drive, FTP, WebDAV
- In-browser file viewing and media playback
Infrastructure updates:
- Updated PostgreSQL init script to create n8n database
- Added environment variables to arty.yml for all three stacks
- Updated compose.yaml include list
- Updated CLAUDE.md and README.md documentation
- Normalized service names in existing stacks (gotify, proxy, umami, vpn)
All services integrated with Traefik for SSL termination and include
Watchtower auto-update labels.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 22:36:13 +01:00
|
|
|
# Scrapy
|
|
|
|
|
SCRAPY_TRAEFIK_ENABLED: true
|
|
|
|
|
SCRAPY_COMPOSE_PROJECT_NAME: scrapy
|
|
|
|
|
SCRAPY_SCRAPYD_IMAGE: vimagick/scrapyd
|
|
|
|
|
SCRAPY_IMAGE: vimagick/scrapyd
|
|
|
|
|
SCRAPY_SCRAPYRT_IMAGE: vimagick/scrapyd
|
2025-11-05 06:43:42 +01:00
|
|
|
SCRAPY_UI_IMAGE: ghcr.io/valknarness/scrapy-ui:main
|
feat: add Scrapy, n8n, and Filestash stacks to Falcon
Added three new service stacks to the docker-compose infrastructure:
- **Scrapy stack** (scrapy.pivoine.art):
- scrapyd: Web scraping daemon with web interface (port 6800)
- scrapy: Development container for spider commands
- scrapyrt: Real-time API for running spiders (port 9080)
- **n8n stack** (n8n.pivoine.art):
- Workflow automation platform with PostgreSQL backend
- 200+ integrations for automated tasks
- Runners enabled for task execution
- Webhook support for external triggers
- **Filestash stack** (stash.pivoine.art):
- Web-based file manager with multi-backend support
- Supports SFTP, S3, Dropbox, Google Drive, FTP, WebDAV
- In-browser file viewing and media playback
Infrastructure updates:
- Updated PostgreSQL init script to create n8n database
- Added environment variables to arty.yml for all three stacks
- Updated compose.yaml include list
- Updated CLAUDE.md and README.md documentation
- Normalized service names in existing stacks (gotify, proxy, umami, vpn)
All services integrated with Traefik for SSL termination and include
Watchtower auto-update labels.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 22:36:13 +01:00
|
|
|
SCRAPY_TRAEFIK_HOST: scrapy.pivoine.art
|
|
|
|
|
SCRAPY_SCRAPYD_PORT: 6800
|
|
|
|
|
SCRAPY_SCRAPYRT_PORT: 9080
|
2025-11-05 06:43:42 +01:00
|
|
|
SCRAPY_UI_SCRAPYD_URL: https://scrapy.pivoine.art/scrapyd
|
feat: add Scrapy, n8n, and Filestash stacks to Falcon
Added three new service stacks to the docker-compose infrastructure:
- **Scrapy stack** (scrapy.pivoine.art):
- scrapyd: Web scraping daemon with web interface (port 6800)
- scrapy: Development container for spider commands
- scrapyrt: Real-time API for running spiders (port 9080)
- **n8n stack** (n8n.pivoine.art):
- Workflow automation platform with PostgreSQL backend
- 200+ integrations for automated tasks
- Runners enabled for task execution
- Webhook support for external triggers
- **Filestash stack** (stash.pivoine.art):
- Web-based file manager with multi-backend support
- Supports SFTP, S3, Dropbox, Google Drive, FTP, WebDAV
- In-browser file viewing and media playback
Infrastructure updates:
- Updated PostgreSQL init script to create n8n database
- Added environment variables to arty.yml for all three stacks
- Updated compose.yaml include list
- Updated CLAUDE.md and README.md documentation
- Normalized service names in existing stacks (gotify, proxy, umami, vpn)
All services integrated with Traefik for SSL termination and include
Watchtower auto-update labels.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 22:36:13 +01:00
|
|
|
# n8n
|
|
|
|
|
N8N_TRAEFIK_ENABLED: true
|
|
|
|
|
N8N_COMPOSE_PROJECT_NAME: n8n
|
|
|
|
|
N8N_IMAGE: docker.n8n.io/n8nio/n8n
|
|
|
|
|
N8N_TRAEFIK_HOST: n8n.pivoine.art
|
|
|
|
|
N8N_PORT: 5678
|
|
|
|
|
N8N_DB_NAME: n8n
|
|
|
|
|
N8N_DB_SCHEMA: public
|
|
|
|
|
# Filestash
|
|
|
|
|
STASH_TRAEFIK_ENABLED: true
|
|
|
|
|
STASH_COMPOSE_PROJECT_NAME: stash
|
|
|
|
|
STASH_IMAGE: machines/filestash:latest
|
|
|
|
|
STASH_TRAEFIK_HOST: stash.pivoine.art
|
|
|
|
|
STASH_PORT: 8334
|
|
|
|
|
STASH_CANARY: true
|
2025-11-06 07:49:49 +01:00
|
|
|
# Linkwarden
|
|
|
|
|
LINKS_TRAEFIK_ENABLED: true
|
|
|
|
|
LINKS_COMPOSE_PROJECT_NAME: links
|
|
|
|
|
LINKS_DOCKER_IMAGE: ghcr.io/linkwarden/linkwarden:latest
|
|
|
|
|
LINKS_TRAEFIK_HOST: links.pivoine.art
|
|
|
|
|
LINKS_DB_NAME: linkwarden
|
|
|
|
|
LINKS_MEILI_IMAGE: getmeili/meilisearch:v1.12.8
|
|
|
|
|
LINKS_MEILI_NO_ANALYTICS: true
|
2025-11-06 10:13:07 +01:00
|
|
|
# Restic
|
|
|
|
|
RESTIC_TRAEFIK_ENABLED: true
|
|
|
|
|
RESTIC_COMPOSE_PROJECT_NAME: restic
|
|
|
|
|
RESTIC_IMAGE: garethgeorge/backrest:latest
|
|
|
|
|
RESTIC_TRAEFIK_HOST: restic.pivoine.art
|
|
|
|
|
RESTIC_HOSTNAME: falcon
|
|
|
|
|
RESTIC_BACKUP_PATH: /mnt/hidrive/users/valknar/Backup
|
2025-11-06 11:15:12 +01:00
|
|
|
# Vault
|
|
|
|
|
VAULT_TRAEFIK_ENABLED: true
|
|
|
|
|
VAULT_COMPOSE_PROJECT_NAME: vault
|
|
|
|
|
VAULT_IMAGE: vaultwarden/server:latest
|
|
|
|
|
VAULT_TRAEFIK_HOST: vault.pivoine.art
|
|
|
|
|
VAULT_WEBSOCKET_ENABLED: true
|
|
|
|
|
VAULT_SIGNUPS_ALLOWED: false
|
|
|
|
|
VAULT_INVITATIONS_ALLOWED: true
|
|
|
|
|
VAULT_SHOW_PASSWORD_HINT: false
|
2025-10-25 13:52:01 +02:00
|
|
|
# Proxy
|
|
|
|
|
PROXY_COMPOSE_PROJECT_NAME: proxy
|
|
|
|
|
PROXY_DOCKER_IMAGE: traefik:latest
|
2025-11-06 08:17:42 +01:00
|
|
|
PROXY_TRAEFIK_HOST: proxy.pivoine.art
|
2025-11-06 09:23:20 +01:00
|
|
|
# Sablier
|
|
|
|
|
SABLIER_COMPOSE_PROJECT_NAME: sablier
|
2025-11-06 09:25:09 +01:00
|
|
|
SABLIER_VERSION: latest
|
2025-10-29 06:40:32 +01:00
|
|
|
# Watchtower
|
|
|
|
|
WATCHTOWER_POLL_INTERVAL: 300
|
|
|
|
|
WATCHTOWER_LABEL_ENABLE: true
|
|
|
|
|
WATCHTOWER_CLEANUP: true
|
|
|
|
|
WATCHTOWER_INCLUDE_STOPPED: false
|
|
|
|
|
WATCHTOWER_INCLUDE_RESTARTING: true
|
|
|
|
|
WATCHTOWER_RUN_ONCE: false
|
|
|
|
|
WATCHTOWER_LOG_LEVEL: info
|
|
|
|
|
WATCHTOWER_ROLLING_RESTART: false
|
2025-10-25 13:52:01 +02:00
|
|
|
|
|
|
|
|
scripts:
|
|
|
|
|
config: docker compose config
|
|
|
|
|
up: docker compose up -d
|
|
|
|
|
down: docker compose down
|
|
|
|
|
logs: docker compose logs -f
|
2025-10-26 12:07:06 +01:00
|
|
|
restart: docker compose restart
|
|
|
|
|
ps: docker compose ps
|
2025-10-26 14:15:21 +01:00
|
|
|
pull: docker compose pull
|
2025-10-26 20:07:08 +01:00
|
|
|
run: docker compose exec -it
|
2025-10-26 12:07:06 +01:00
|
|
|
env/sync: rsync -avzhe ssh ./.env root@vps:~/Projects/docker-compose/
|
2025-10-28 22:12:25 +01:00
|
|
|
# Database export scripts for sexy.pivoine.art
|
|
|
|
|
# Export PostgreSQL database schema and data with DROP IF EXISTS statements
|
|
|
|
|
sexy/db/export: |
|
2025-10-28 22:27:33 +01:00
|
|
|
docker exec core_postgres pg_dump \
|
2025-10-29 04:16:17 +01:00
|
|
|
-U sexy \
|
|
|
|
|
-d sexy \
|
2025-10-28 22:12:25 +01:00
|
|
|
--no-owner \
|
|
|
|
|
--no-acl \
|
|
|
|
|
--clean \
|
|
|
|
|
--if-exists \
|
2025-10-28 22:27:33 +01:00
|
|
|
> ~/Projects/docker-compose/sexy/directus.sql &&
|
2025-10-28 22:12:25 +01:00
|
|
|
echo "Database exported to ~/Projects/docker-compose/sexy/directus.sql"
|
|
|
|
|
|
|
|
|
|
# Export Directus schema.yaml (collections, fields, relations, etc.)
|
|
|
|
|
sexy/schema/export: |
|
2025-10-28 22:27:33 +01:00
|
|
|
docker exec sexy_api mkdir -p /directus/snapshots &&
|
|
|
|
|
docker exec sexy_api npx directus schema snapshot /directus/snapshots/schema.yaml &&
|
|
|
|
|
docker cp sexy_api:/directus/snapshots/schema.yaml ~/Projects/docker-compose/sexy/schema.yaml &&
|
2025-10-28 22:12:25 +01:00
|
|
|
echo "Directus schema exported to ~/Projects/docker-compose/sexy/schema.yaml"
|
|
|
|
|
|
|
|
|
|
# Combined export: both database and schema
|
|
|
|
|
sexy/export/all: |
|
2025-10-28 22:27:33 +01:00
|
|
|
echo "Exporting database..." &&
|
|
|
|
|
docker exec core_postgres pg_dump \
|
2025-10-29 04:16:17 +01:00
|
|
|
-U sexy \
|
|
|
|
|
-d sexy \
|
2025-10-28 22:12:25 +01:00
|
|
|
--no-owner \
|
|
|
|
|
--no-acl \
|
|
|
|
|
--clean \
|
|
|
|
|
--if-exists \
|
2025-10-28 22:27:33 +01:00
|
|
|
> ~/Projects/docker-compose/sexy/directus.sql &&
|
|
|
|
|
echo "✓ Database exported" &&
|
|
|
|
|
echo "Exporting Directus schema..." &&
|
|
|
|
|
docker exec sexy_api mkdir -p /directus/snapshots &&
|
|
|
|
|
docker exec sexy_api npx directus schema snapshot /directus/snapshots/schema.yaml &&
|
|
|
|
|
docker cp sexy_api:/directus/snapshots/schema.yaml ~/Projects/docker-compose/sexy/schema.yaml &&
|
|
|
|
|
echo "✓ Directus schema exported" &&
|
2025-10-28 22:12:25 +01:00
|
|
|
echo "All exports completed successfully!"
|
|
|
|
|
|
|
|
|
|
# Import PostgreSQL database from SQL dump
|
|
|
|
|
# WARNING: This will DROP existing tables if they exist (uses --clean --if-exists)
|
|
|
|
|
sexy/db/import: |
|
2025-10-28 22:27:33 +01:00
|
|
|
echo "⚠️ WARNING: This will replace the current database!" &&
|
|
|
|
|
echo "Make sure core_postgres container is running..." &&
|
2025-10-29 04:16:17 +01:00
|
|
|
docker exec -i core_postgres psql -U valknar -d directus < ~/Projects/docker-compose/sexy/directus.sql &&
|
2025-10-28 22:27:33 +01:00
|
|
|
echo "✓ Database imported from ~/Projects/docker-compose/sexy/directus.sql" &&
|
|
|
|
|
echo "Restarting Directus API..." &&
|
|
|
|
|
docker restart sexy_api &&
|
2025-10-28 22:12:25 +01:00
|
|
|
echo "✓ Import completed successfully!"
|
|
|
|
|
|
|
|
|
|
# Apply Directus schema snapshot (collections, fields, relations)
|
|
|
|
|
# This uses 'directus schema apply' which is non-destructive by default
|
|
|
|
|
sexy/schema/import: |
|
2025-10-28 22:27:33 +01:00
|
|
|
echo "Applying Directus schema snapshot..." &&
|
|
|
|
|
docker cp ~/Projects/docker-compose/sexy/schema.yaml sexy_api:/directus/schema.yaml &&
|
|
|
|
|
docker exec sexy_api npx directus schema apply --yes /directus/schema.yaml &&
|
|
|
|
|
echo "✓ Directus schema applied from ~/Projects/docker-compose/sexy/schema.yaml" &&
|
|
|
|
|
echo "Restarting Directus API..." &&
|
|
|
|
|
docker restart sexy_api &&
|
2025-10-28 22:12:25 +01:00
|
|
|
echo "✓ Schema import completed successfully!"
|
|
|
|
|
|
|
|
|
|
# Combined import: database and schema (use with caution!)
|
|
|
|
|
# Step 1: Import database (drops/recreates all tables)
|
|
|
|
|
# Step 2: Apply schema (updates Directus metadata)
|
|
|
|
|
sexy/import/all: |
|
2025-10-28 22:27:33 +01:00
|
|
|
echo "⚠️ WARNING: This will completely replace the database and schema!" &&
|
2025-10-28 23:24:36 +01:00
|
|
|
echo "Importing database..." &&
|
2025-10-29 04:16:17 +01:00
|
|
|
docker exec -i core_postgres psql -U ${DB_USER} -d ${SEXY_DB_NAME} < ~/Projects/docker-compose/sexy/directus.sql &&
|
2025-10-28 23:24:36 +01:00
|
|
|
echo "✓ Database imported" &&
|
|
|
|
|
echo "Applying Directus schema..." &&
|
|
|
|
|
docker cp ~/Projects/docker-compose/sexy/schema.yaml sexy_api:/directus/schema.yaml &&
|
|
|
|
|
docker exec sexy_api npx directus schema apply --yes /directus/schema.yaml &&
|
|
|
|
|
echo "✓ Schema applied" &&
|
|
|
|
|
echo "Restarting Directus API..." &&
|
|
|
|
|
docker restart sexy_api &&
|
|
|
|
|
echo "✓✓✓ Complete import finished successfully!"
|
2025-10-28 22:12:25 +01:00
|
|
|
|
|
|
|
|
sexy/uploads/export: |
|
2025-10-26 11:38:32 +01:00
|
|
|
rm -rf sexy/uploads
|
|
|
|
|
docker cp "sexy_api:/directus/uploads" "sexy/uploads"
|
2025-10-28 22:12:25 +01:00
|
|
|
sexy/uploads/import: |
|
2025-10-26 11:40:07 +01:00
|
|
|
docker cp "sexy/uploads" "sexy_api:/directus"
|
2025-10-26 12:07:06 +01:00
|
|
|
net/create: docker network create "$NETWORK_NAME"
|
2025-10-26 19:41:56 +01:00
|
|
|
awsm/import: |
|
2025-10-26 21:08:56 +01:00
|
|
|
docker cp "/tmp/awesome-database" "awesome_app:/home/node/.awesome"
|