{% if applications | get_app_conf(application_id, 'features.oauth2', False) %} oauth2-proxy: image: quay.io/oauth2-proxy/oauth2-proxy:{{applications['oauth2-proxy'].version}} restart: {{docker_restart_policy}} command: --config /oauth2-proxy.cfg hostname: oauth2-proxy ports: - {{ports.localhost.oauth2_proxy[application_id]}}:4180/tcp volumes: - "{{docker_compose.directories.volumes}}{{applications | get_app_conf('oauth2-proxy','configuration_file')}}:/oauth2-proxy.cfg" {% endif %}