services:
  canvas:
    image: $PATCHSET_TAG
    links:
      - postgres
      - redis
    environment:
      RAILS_ENV: development
      INCLUDE_INTERNAL_API_DOCS: 'true'
      USE_OPTIMIZED_JS: "true"
      ADDITIONAL_ALLOWED_HOSTS: localhost:8181
    ports:
      - "8181:80"
    init: true

  jobs:
    image: $PATCHSET_TAG
    links:
      - postgres
      - redis
    environment:
      RAILS_ENV: development
    command: bundle exec script/delayed_job run
    init: true

  postgres:
    image: $POSTGRES_IMAGE_TAG
    environment:
      POSTGRES_PASSWORD: sekret
    init: true

  redis:
    image: 948781806214.dkr.ecr.us-east-1.amazonaws.com/docker.io/library/redis:alpine
    init: true
