service: sloanelybutsurely
image: sloanelybutsurely/sloanelybutsurely.com

servers:
  web:
    - sloanelybutsurely

env:
  clear:
    PHX_HOST: sloanelybutsurely.com
    PORT: 4000
  secret:
    - DATABASE_URL
    - SECRET_KEY_BASE

# Enable SSL auto certification via Let's Encrypt and allow for multiple apps on a single web server.
# Remove this section when using multiple web servers and ensure you terminate SSL at your load balancer.
#
# Note: If using Cloudflare, set encryption mode in SSL/TLS setting to "Full" to enable CF-to-app encryption.
proxy:
  ssl: false
  hosts:
    - sloanelybutsurely.com
    - sloanelybutsurely
  app_port: 4000

registry:
  username: sloanelybutsurely
  password:
    - KAMAL_REGISTRY_PASSWORD

builder:
  arch: amd64
  remote: ssh://root@sloanelybutsurely
  local: false

accessories:
  db:
    image: postgres:17-alpine
    host: sloanelybutsurely
    port: 5432
    env:
      clear:
        POSTGRES_USER: sloanely_but_surely_prod
        POSTGRES_DB: sloanely_but_surely_prod
      secret:
        - POSTGRES_PASSWORD
    volumes:
      - postgres_data:/var/lib/postgresql/data