### ----------------------------------------------------
### -- Red
### -- Licenses: Artistic-2.0
### -- Authors: Fernando Correa de Oliveira
### -- File: docker-compose.yml
### ----------------------------------------------------
version: '3'
services:
  pg:
    image: bitnami/postgresql:latest
    restart: always
    environment:
      POSTGRES_PASSWORD: red
      POSTGRES_USERNAME: red
      POSTGRESQL_DATABASE: red
  tester:
    build: .
    environment:
      RED_DATABASE: "Pg host=pg user=red dbname=red password=red"
    # entrypoint: "mi6 test -v"
    depends_on:
      - pg
    volumes:
      - .:/code


