Newer
Older
gnexus-creds / docker-compose.yml
@Eugene Sukhodolskiy Eugene Sukhodolskiy 4 days ago 667 bytes Add official MCP transport and production hardening
services:
  postgres:
    image: postgres:18
    environment:
      POSTGRES_DB: gnexus_creds
      POSTGRES_USER: gnexus_creds
      POSTGRES_PASSWORD: gnexus_creds
    volumes:
      - postgres-data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U gnexus_creds -d gnexus_creds"]
      interval: 5s
      timeout: 3s
      retries: 20

  app:
    build: .
    depends_on:
      postgres:
        condition: service_healthy
    env_file:
      - .env
    environment:
      GNEXUS_CREDS_DATABASE_URL: postgresql+psycopg://gnexus_creds:gnexus_creds@postgres:5432/gnexus_creds
    ports:
      - "8000:8000"

volumes:
  postgres-data: