version: '3.8'

services:

  test-integration:
    build:
      context: .
      target: test-integration
    volumes:
      - .:/var/app

  unit-lint:
    build:
      context: .
      target: unit-lint
    volumes:
      - .:/var/app

  {{cookiecutter.app_name}}-dev:
    build:
      context: .
      target: dev
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:5000/hello/"]
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 40s
    volumes:
      - .:/var/app

  {{cookiecutter.app_name}}-deploy:
    build:
      context: .
      target: deploy
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8080/hello/"]
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 40s
