version: "3.4"

services:
  web:
    build:
      context: .
      target: deploy
    environment:
      SESSION_SECRET: test_secret
      LOGIN_URL: "https://dev-um.atlas.stream/usm/login"
      LOGOUT_URL: "https://dev-um.atlas.stream/usm/logout"
      PUBLIC_KEY_URL: "https://dev-static-um.atlas.stream/pem/public.pem"
      ALLOWED_HOSTS: "auth.localhost:8001"
      ORIGINS: "localhost:8001"
    volumes:
      - '.:/opt/auth_proxy'
    ports:
      - "8001:8000"

  test:
    build:
      context: .
      target: test
    environment:
      SESSION_SECRET: test_secret
    tty: true
