services:
  ows-data-export:
    build:
      dockerfile: dockerfiles/Dockerfile.local
      context: .
      args:
        AWS_ACCOUNT: 103233932089
    image: ows-data-export:deploy    
    healthcheck:
      test: ["CMD-SHELL", "[ \"$$(curl -f http://localhost:5000/hello/ | jq -r .status)\" == 'ok' ] || exit 1" ]
      interval: 30s
      timeout: 5s
      retries: 5
    environment:
      Environment: 'local'
      SNOWFLAKE_PRIVATE_KEY_PATH: '/home/gunicorn/.ssh/snowflake/rsa_key.p8'
    ports:
      - "8080:8080"
      - "5000:5000"
    env_file:
      - .env
    volumes:
      - ${HOME}/.aws:/home/gunicorn/.aws
      - ${HOME}/.ssh/snowflake/rsa_key.p8:/home/gunicorn/.ssh/snowflake/rsa_key.p8

