version: '3.8'
name: fids-auth

services:
  auth-api:
    extends:
      file: docker-template.yml
      service: auth-api
    depends_on:
      auth-db:
        condition: service_healthy
    networks:
      - auth
    logging:
      options:
        tag: auth

  auth-db:
    extends:
      file: docker-template.yml
      service: auth-db
    volumes:
      - flights_db:/var/lib/postgresql/data
    networks:
      - auth

networks:
  auth:
    driver: bridge

volumes:
  flights_db: