51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
redis:
|
|
image: redis
|
|
command: redis-server --appendonly yes
|
|
volumes:
|
|
- ./tmp/redis-data:/data
|
|
ports:
|
|
- 6379:6379
|
|
networks:
|
|
- backend
|
|
proxy:
|
|
image: docker-registry.biotronik.int/web/auth-proxy
|
|
depends_on:
|
|
- redis
|
|
environment:
|
|
- "NODE_ENV=debug"
|
|
- "PORT=3000"
|
|
- "EXTERNAL_BASE_URL=http://localhost"
|
|
- "REDIS_URL=redis://redis:6379"
|
|
- "WELLKNOWN_CONFIG_URI=https://nodejs1-2.biotronik.int/auth/realms/CoE-BS/.well-known/openid-configuration"
|
|
- "CLIENT_ID=demo"
|
|
- "CLIENT_SECRET=fb49b346-c515-4680-adb1-beee0bd5b66e"
|
|
- "CLIENT_SCOPE=openid email profile roles groups"
|
|
- "EXT_REDIRECT_URI=http://localhost/oauth/redirect"
|
|
- "EXT_POST_LOGOUT_REDIRECT_URI=http://localhost"
|
|
- "EXT_POST_LOGIN_REDIRECT_URI=http://localhost"
|
|
- "PROXY_TARGET_URI=http://host.docker.internal:3000"
|
|
- "SSL_VERIFY=false"
|
|
- "NO_PROXY=redis:6379"
|
|
ports:
|
|
- 3001:3000
|
|
networks:
|
|
- frontend
|
|
- backend
|
|
nginx:
|
|
image: nginx:alpine
|
|
depends_on:
|
|
- proxy
|
|
volumes:
|
|
- ./tmp/default-external.conf:/etc/nginx/conf.d/default.conf
|
|
ports:
|
|
- 80:80
|
|
networks:
|
|
- frontend
|
|
|
|
networks:
|
|
backend:
|
|
frontend:
|