services: postgres: image: ${NEO_IMAGE_POSTGRES:?release image required} restart: unless-stopped labels: roundtable.distribution: "1" environment: POSTGRES_DB: ${POSTGRES_DB:-roundtable} POSTGRES_USER: ${POSTGRES_USER:-roundtable} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?database password required} volumes: - ./data/psql/_data:/var/lib/postgresql healthcheck: test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER:-roundtable}", "-d", "${POSTGRES_DB:-roundtable}"] interval: 5s timeout: 5s retries: 5 roundtable: image: ${NEO_IMAGE_ROUNDTABLE:?release image required} restart: unless-stopped labels: roundtable.distribution: "1" depends_on: postgres: condition: service_healthy environment: PGHOST: postgres PGPORT: "5432" PGUSER: ${POSTGRES_USER:-roundtable} PGPASSWORD: ${POSTGRES_PASSWORD:?database password required} PGDATABASE: ${POSTGRES_DB:-roundtable} PGSSLMODE: disable NEO_APP_ORIGIN: ${NEO_APP_ORIGIN:-} ROUNDTABLE_PUBLIC_ORIGIN: ${ROUNDTABLE_PUBLIC_ORIGIN:-http://localhost:${ROUNDTABLE_PORT:-3060}} ROUNDTABLE_OAUTH_SIGNING_KEY: ${ROUNDTABLE_OAUTH_SIGNING_KEY:-} ROUNDTABLE_TRUSTED_PROXIES: ${ROUNDTABLE_TRUSTED_PROXIES:-${ROUNDTABLE_GATEWAY:-172.28.0.1}/32} ROUNDTABLE_SUBNET: ${ROUNDTABLE_SUBNET:-172.28.0.0/16} DUO_CLIENT_ID: ${DUO_CLIENT_ID:-} DUO_CLIENT_SECRET: ${DUO_CLIENT_SECRET:-} DUO_API_HOST: ${DUO_API_HOST:-} DUO_FAIL_OPEN: ${DUO_FAIL_OPEN:-true} ROUNDTABLE_DATA_DIR: ${ROUNDTABLE_DATA_DIR:-/data} ROUNDTABLE_BACKUP_DIR: ${ROUNDTABLE_BACKUP_DIR:-/backups} ROUNDTABLE_BACKUP_KEEP: ${ROUNDTABLE_BACKUP_KEEP:-5} ROUNDTABLE_NEO_WEB: ${ROUNDTABLE_NEO_WEB:-} ROUNDTABLE_CONTACTS_WORKSHOP: ${ROUNDTABLE_CONTACTS_WORKSHOP:-} ROUNDTABLE_PHONE_REGION: ${ROUNDTABLE_PHONE_REGION:-DE} ROUNDTABLE_OCR_URL: http://ocr:8090 ROUNDTABLE_TRANSCRIPTION_URL: http://transcription:8091 networks: - default - ocr-private - transcription-private - contacts-private volumes: - ./backups:/backups - ./data:/data - ./vault/neo-keys:/data/neo-keys ports: - "127.0.0.1:${ROUNDTABLE_PORT:-3060}:8080" contacts-workshop: profiles: [contacts] image: ${NEO_IMAGE_CONTACTS:?release image required} restart: unless-stopped labels: roundtable.distribution: "1" depends_on: - roundtable environment: ROUNDTABLE_PUBLIC_ORIGIN: ${ROUNDTABLE_PUBLIC_ORIGIN:-http://localhost:${ROUNDTABLE_PORT:-3060}} ROUNDTABLE_PHONE_REGION: ${ROUNDTABLE_PHONE_REGION:-DE} CONTACTS_WORKSHOP_DIR: /var/lib/contacts read_only: true tmpfs: - /tmp:size=16m cap_drop: [ALL] security_opt: [no-new-privileges:true] volumes: - ./data/tools/contacts:/var/lib/contacts networks: - contacts-private ocr: image: ${NEO_IMAGE_OCR:?release image required} restart: unless-stopped labels: roundtable.distribution: "1" cpus: 2.0 mem_limit: 1536m memswap_limit: 1536m read_only: true tmpfs: - /tmp:size=64m cap_drop: [ALL] security_opt: [no-new-privileges:true] healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8090/healthz', timeout=2).close()"] interval: 10s timeout: 3s start_period: 30s retries: 3 networks: - ocr-private transcription: image: ${NEO_IMAGE_TRANSCRIPTION:?release image required} restart: unless-stopped labels: roundtable.distribution: "1" cpus: 2.0 mem_limit: 2g memswap_limit: 2g read_only: true tmpfs: - /tmp:size=300m cap_drop: [ALL] security_opt: [no-new-privileges:true] healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8091/healthz', timeout=2).close()"] interval: 10s timeout: 3s start_period: 30s retries: 3 networks: - transcription-private networks: contacts-private: internal: true transcription-private: internal: true ocr-private: internal: true default: ipam: config: - subnet: ${ROUNDTABLE_SUBNET:-172.28.0.0/16} gateway: ${ROUNDTABLE_GATEWAY:-172.28.0.1}