From 4625e60a6b067ac4dcb0a978bd60f80c72bea60f Mon Sep 17 00:00:00 2001 From: D Stephenson Date: Tue, 23 Jun 2026 11:38:57 -0500 Subject: [PATCH] Integrate with shared nocodb-network and add NocoDB env vars --- docker-compose.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4e2daa4..1a2a2e9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,14 +1,26 @@ - services: + switch-config-manager: - build: . + build: + context: . + dockerfile: Dockerfile container_name: switch-config-manager - restart: unless-stopped ports: - "8003:8003" volumes: - - ./config.py:/app/config.py - - ./templates/index.html:/app/templates/index.html + - ./config.py:/app/config.py:ro - ./configs:/configs environment: - PYTHONUNBUFFERED=1 + - NOCODB_URL=http://nocodb:8080 + - NOCODB_TOKEN=eWU_ilelaCtNy1JzC7vf41DokkqFOovcLHM0zVml + - NOCODB_BASE_ID=p1h7iyzjjbsnfv5 + - NOCODB_TABLE_ID=md03qoibd5fz839 + restart: unless-stopped + networks: + - nocodb-network + +networks: + nocodb-network: + external: true + name: nocodb-network