### ----------------------------------------------------
### -- TOP
### -- Licenses: Artistic-2.0
### -- Authors: Tim Nelson
### -- File: docker/docker-compose.yml
### ----------------------------------------------------
version: "3.8"

services:
  # Docker for TOP
  raku:
    build:
      context: .
      dockerfile: docker/raku.dockerfile
    depends_on:
      postgres:
        condition: service_healthy

  postgres:
    build:
      context: .
      dockerfile: docker/pagila.dockerfile
    environment:
      POSTGRES_DB: pagila
      POSTGRES_PASSWORD: postgres
      POSTGRES_PORT: 5432
      POSTGRES_USER: postgres
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 30s
      timeout: 15s
      retries: 10


