equinor / webviz-docker

Build and deploy webviz-config Dockerhub base image.
https://github.com/orgs/equinor/projects/24
GNU Lesser General Public License v3.0
2 stars 3 forks source link

Spike multi container app #17

Closed anders-kiaer closed 4 years ago

anders-kiaer commented 5 years ago

spike splitting into multicontainer app with overlay internal only network etc

anders-kiaer commented 4 years ago
version: '3.3'
services:

  nginx:
    image: quay.io/pusher/oauth2_proxy
    cap_drop:
     - all
    ports:
      - 80:4180
    networks:
      - outside
      - internal
    environment:
      - OAUTH2_PROXY_PROVIDER=azure
      - OAUTH2_PROXY_CLIENT_ID=SOME_CLIENT_ID
      - OAUTH2_PROXY_CLIENT_SECRET=SOME_CLIENT_SECRET
      - OAUTH2_PROXY_HTTPS_ADDRESS=8443
      - OAUTH2_PROXY_REDIRECT_URL=https://appname.azurewebsites.net/oauth2/callback
      - OAUTH2_PROXY_UPSTREAMS=http://flask:5000
      - OAUTH2_PROXY_COOKIE_SECRET=SOME_COOKIE_SECRET
      - OAUTH2_PROXY_EMAIL_DOMAINS=*
      - OAUTH2_PROXY_HTTP_ADDRESS=0.0.0.0:4180

  flask:
    image: someacrname.azurecr.io/webviz:example
    cap_drop:
     - all
    networks:
      - internal
    volumes:
      - webviz-mountet-storage:/storage

networks:
  internal:
    internal: true

  outside:

OAuth + sandboxed networking + mount of fileshare