Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

🔧(backend) add Docker network for shared Keycloak OIDC authentication

lebaudantoinea642c6d9a27b
diff --git a/compose.yml b/compose.yml
index cd760e82..cd435e36 100644
--- a/compose.yml
+++ b/compose.yml
@@ -90,6 +90,9 @@ services:
- createwebhook
extra_hosts:
- "127.0.0.1.nip.io:host-gateway"
+ networks:
+ - resource-server
+ - default
celery-dev:
user: ${DOCKER_USER:-1000}
@@ -145,6 +148,9 @@ services:
- ./docker/files/etc/nginx/conf.d:/etc/nginx/conf.d:ro
depends_on:
- keycloak
+ networks:
+ - resource-server
+ - default
frontend:
user: "${DOCKER_USER:-1000}"
@@ -298,3 +304,7 @@ services:
watch:
- action: rebuild
path: ./src/summary
+
+networks:
+ default:
+ resource-server:
diff --git a/docker/resource-server/compose.yml b/docker/resource-server/compose.yml
new file mode 100644
index 00000000..a92e8920
--- /dev/null
+++ b/docker/resource-server/compose.yml
@@ -0,0 +1,23 @@
+version: '3'
+
+# You can add any necessary service here that will join the same docker network
+# sharing keycloak. Services added to the 'meet_resource-server' network will be
+# able to communicate with keycloak and the backend on that network.
+services:
+ # busybox service is only used for testing purposes. It provides curl to test
+ # connectivity to the backend and keycloak services. Replace this with your
+ # relevant application services that need to communicate with keycloak.
+ busybox:
+ image: alpine:latest
+ privileged: true
+ command: sh -c "apk add --no-cache curl && sleep infinity"
+ stdin_open: true
+ tty: true
+ networks:
+ - default
+ - meet_resource-server
+
+networks:
+ default: {}
+ meet_resource-server:
+ external: true