version: '3.8'
name: fids-auth-dev

services:
  auth-api:
    extends:
      file: docker-template.yml
      service: auth-api
    container_name: fids-auth-dev_auth-api
    environment:
      - DATABASE_TEST_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASS}@auth-db/${POSTGRES_DB_TEST}
    depends_on:
      auth-db:
        condition: service_healthy
    networks:
      - auth
    logging:
      options:
        tag: dev-auth

  auth-db:
    extends:
      file: docker-template.yml
      service: auth-db
    container_name: fids-auth-dev_auth-db
    networks:
      - auth

networks:
  auth:
    driver: bridge