deadnews-template-rust 0.0.0

Rust Project Template
services:
  template-rust:
    build:
      context: .
      args:
        PROFILE: dev-build
    read_only: true
    cap_drop: [ALL]
    security_opt: [no-new-privileges]
    depends_on:
      postgres:
        condition: service_healthy
    healthcheck:
      test: [CMD, /bin/httpcheck, http://127.0.0.1:8000/health]
      interval: 1m
      retries: 3
      timeout: 10s
      start_period: 1m
    ports:
      - 127.0.0.1:8000:8000/tcp
    environment:
      SERVICE_DSN: postgres://postgres:postgres@postgres:5432/postgres
      RUST_LOG: deadnews_template_rust=info,tower_http=debug

  postgres:
    image: postgres:18-alpine
    healthcheck:
      test: [CMD, pg_isready, -U, postgres]
      interval: 1m
      retries: 3
      timeout: 10s
      start_period: 1m
    environment:
      POSTGRES_DB: postgres
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres