# To execute this docker-compose yml file use docker-compose -f <file_name> up
# Add the "-d" flag at the end for deattached execution
version: "3"
services:

  postgres-localhost:
    image: whitelist/test-db
    container_name: postgres-localhost
    ports:
      - "15432:5432"

  whitelist-api:
    image: whitelist/test-api:latest
    container_name: whitelist-api
    depends_on:
      - postgres-localhost
    ports:
      - "15000:5000"
    environment:
      - AWS_ACCESS_KEY_ID
      - AWS_SECRET_ACCESS_KEY
      - AWS_DEFAULT_REGION=eu-west-1
      - WL_INIT_SEED_DATA