Newer
Older
gnexus-creds / docker-compose.yml
@Eugene Sukhodolskiy Eugene Sukhodolskiy 4 days ago 543 bytes Add Docker packaging and admin user UI
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
    ports:
      - "8000:8000"

volumes:
  postgres-data: