diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..30cf57e --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/docker-compose.yml b/docker-compose.yml index 80bb8c1..d3f4644 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,15 +4,17 @@ services: container_name: init-mcpo user: '0' command: > - sh -c "cp -fu /sources/mcpo-config.yaml /app/config.yml" + sh -c "cp -fu /sources/config.yaml /app/" volumes: - ./sources:/sources # Chemin des stacks pour Hawser sous Ubuntu - /var/lib/docker/volumes/hawser_stacks/_data/mcpo/sources:/sources # Chemin des stacks pour Hawser sous debian # - /opt/hawser-stacks/zigbee2mqtt/sources:/sources - - /var/lib/docker/volumes/zigbee2mqtt/data:/app/data + - /var/lib/docker/volumes/mcpo/config:/app restart: "no" + networks: + - mcponet mcpo: image: ghcr.io/modelcontextprotocol/mcpo:latest @@ -21,4 +23,13 @@ services: ports: - "8888:8000" volumes: - - /var/lib/docker/volumes/mcpo/mcpo-config.yaml:/app/config.yaml:ro + - /var/lib/docker/volumes/mcpo/config.yaml:/app/config.yaml:ro + networks: + - mcponet + +networks: + mcponet: + driver: bridge + ipam: + config: + - subnet: 172.57.0.0/24 diff --git a/sources/config.yaml b/sources/config.yaml new file mode 100644 index 0000000..9174ae6 --- /dev/null +++ b/sources/config.yaml @@ -0,0 +1,16 @@ +servers: + dockhand: + type: http + url: "http://dartydisk6.maison:8080" + + homeassistant: + type: http + url: "http://pdocker3.maison:8123/mcp" + + grafana: + type: http + url: "http://pdocker3.maison:18000" + + n8n: + type: http + url: "http://pdocker4.maison:35678" \ No newline at end of file