services:
  oauth2:
    container_name: scipro-dev-oauth2
    build:
      context: https://github.com/dsv-su/toker.git
      dockerfile: embedded.Dockerfile
    restart: on-failure
    ports:
      - '59733:8080'
    environment:
      - CLIENT_ID=get-token
      - CLIENT_SECRET=get-token-secret
      - CLIENT_REDIRECT_URI=http://localhost:59732/
      - RESOURCE_SERVER_ID=scipro-api-client
      - RESOURCE_SERVER_SECRET=scipro-api-secret
  oauth2-wicket:
    build:
      context: https://github.com/dsv-su/toker.git
      dockerfile: embedded.Dockerfile
    restart: on-failure
    ports:
      - '59734:8080'
    environment:
      - CLIENT_ID=scipro
      - CLIENT_SECRET=s3cr3t
      - CLIENT_REDIRECT_URI=http://localhost:8080/login/oauth2/code/scipro