# Production configuration for CatLink
services:
  web:
    environment:
      - DJANGO_DEBUG=False
      - DJANGO_SECURE_SSL_REDIRECT=True
      - DJANGO_SECURE_HSTS_SECONDS=31536000
      - DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS=True
      - DJANGO_SECURE_HSTS_PRELOAD=True
    restart: unless-stopped
    
  frontend:
    environment:
      - NODE_ENV=production
      - NEXT_PUBLIC_API_URL=https://links.shareon.kr
    restart: unless-stopped
    
  db:
    restart: unless-stopped
    # В продакшене БД полностью изолирована - без внешних портов
    ports: []
    environment:
      - POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256