version: 3.7

services:
  redis:
    image: quay.io/opstree/redis:latest
    container_name: redis
    restart: always
    ports:
      - "127.0.0.1:6379:6379"
    environment:
      - REDIS_PASSWORD=foobar
  api:
    image: localhost/api:latest
    container_name: api
    restart: always
    depends_on:
      - redis
    ports:
      - "3001:3001"
    environment:
      - REDIS_HOST=localhost
      - REDIS_PORT=6379
      - REDIS_PASSWORD=foobar
      - KEMAL_ENV=development
      - API_USERNAME=admin
      - API_PASSWORD=pissword
