services:
  unit-lint:
    platform: linux/amd64
    build:
      context: .
      target: unit-lint
    volumes:
      - ./build:/var/app/build
  ows-conflict-manager:
    platform: linux/amd64
    build:
      context: .
      target: deploy
    ports:
      - "8080:8080"
    env_file:
      - path: .env
        required: false
    healthcheck:
      test:
        ["CMD-SHELL", "curl", "-f", "http://localhost:8080:hello/ || exit 1"]
      interval: 30s
      timeout: 5s
      retries: 5
    environment:
      Environment: "dev"
  ows-conflict-manager-dev:
    platform: linux/amd64
    build:
      context: .
      target: dev
    ports:
      - "5000:5001"
    env_file:
      - path: .env
        required: false
    environment:
      Environment: "dev"
    volumes:
      - .:/var/app
      - ~/.ssh/snowflake/rsa_key.p8:/var/app/rsa_key.p8:ro
