Files
captain-claude/infra/deck/tzzr-stack.docker-compose.yml
ARCHITECT 60ca0640a3 Add DECK server Docker Compose configurations
- tzzr-stack: PostgreSQL, PostgREST, Directus (unified DB stack)
- services: Shlink, Filebrowser, Redis, Vaultwarden, ntfy

PostgreSQL migrated from host to Docker with all services
connected via tzzr-net network.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 21:31:31 +00:00

79 lines
2.2 KiB
YAML

services:
postgres:
image: postgres:15-alpine
container_name: tzzr-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: TzzrPostgres-2024
POSTGRES_DB: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "127.0.0.1:5432:5432"
networks:
- tzzr-net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
postgrest:
image: postgrest/postgrest:latest
container_name: tzzr-postgrest
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
PGRST_DB_URI: postgres://authenticator:postgrest_deck_2024@postgres:5432/tzzr
PGRST_DB_SCHEMAS: public,tzzr_core_hst,tzzr_core_itm_base,tzzr_core_secretaria,tzzr_core_produccion,mail_manager,context_manager
PGRST_DB_ANON_ROLE: web_anon
PGRST_SERVER_PORT: 3000
ports:
- "127.0.0.1:3000:3000"
networks:
- tzzr-net
directus:
image: directus/directus:11
container_name: tzzr-directus
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DB_CLIENT: pg
DB_HOST: postgres
DB_PORT: 5432
DB_DATABASE: tzzr
DB_USER: tzzr
DB_PASSWORD: TzzrDB-2024-Secure
DB_SEARCH_PATH: tzzr_core_hst,tzzr_core_itm_base,tzzr_core_secretaria,tzzr_core_oracle,tzzr_core_contabilidad,tzzr_core_administracion,tzzr_core_produccion,public
KEY: d8f4a2e1b5c9f0a3e6d7c8b9a0e1f2d3
SECRET: a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8
ADMIN_EMAIL: admin@tzzrdeck.me
ADMIN_PASSWORD: TzzrAdmin-2024
PUBLIC_URL: https://directus.tzzrdeck.me
CORS_ENABLED: "true"
CORS_ORIGIN: "true"
CONTENT_SECURITY_POLICY_DIRECTIVES__IMG_SRC: "'self' data: blob: https://tzrtech.org https://atc.tzzrdeck.me https://tzzrdeck.me"
ports:
- "127.0.0.1:8055:8055"
volumes:
- directus_uploads:/directus/uploads
- directus_extensions:/directus/extensions
networks:
- tzzr-net
networks:
tzzr-net:
name: tzzr-net
driver: bridge
volumes:
postgres_data:
directus_uploads:
directus_extensions: