Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

chore(docker): harden compose networking for local-only access

Changhoon Sung66517638a670
diff --git a/docker-compose.standalone.yml b/docker-compose.standalone.yml
index 9d591c3b..f1cddba0 100644
--- a/docker-compose.standalone.yml
+++ b/docker-compose.standalone.yml
@@ -8,8 +8,10 @@
services:
arangodb:
image: arangodb:3.12
+ networks:
+ - backend
ports:
- - "8529:8529"
+ - "127.0.0.1:8529:8529"
environment:
ARANGO_NO_AUTH: "1"
volumes:
@@ -18,10 +20,12 @@ services:
memory-layer:
image: ghcr.io/ix-infrastructure/ix-memory-layer:latest
+ networks:
+ - backend
ports:
- - "8090:8090"
+ - "127.0.0.1:8090:8090"
volumes:
- - ${HOME}:${HOME}:ro
+ - ${IX_HOST_MOUNT_ROOT:-${HOME}}:${IX_HOST_MOUNT_ROOT:-${HOME}}:ro
environment:
ARANGO_HOST: arangodb
ARANGO_PORT: "8529"
@@ -41,3 +45,7 @@ services:
volumes:
arangodb-data:
+
+networks:
+ backend:
+ internal: true
diff --git a/docker-compose.yml b/docker-compose.yml
index 065888c1..12f30ba0 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,8 +1,10 @@
services:
arangodb:
image: arangodb:3.12
+ networks:
+ - backend
ports:
- - "8529:8529"
+ - "127.0.0.1:8529:8529"
environment:
ARANGO_NO_AUTH: "1"
volumes:
@@ -17,10 +19,12 @@ services:
memory-layer:
build: ./memory-layer
+ networks:
+ - backend
ports:
- - "8090:8090"
+ - "127.0.0.1:8090:8090"
volumes:
- - ${DOCKER_HOME:-$HOME}:${DOCKER_HOME:-$HOME}:ro
+ - ${IX_HOST_MOUNT_ROOT:-${DOCKER_HOME:-$HOME}}:${IX_HOST_MOUNT_ROOT:-${DOCKER_HOME:-$HOME}}:ro
environment:
ARANGO_HOST: arangodb
ARANGO_PORT: "8529"
@@ -29,8 +33,7 @@ services:
ARANGO_PASSWORD: ""
PORT: "8090"
depends_on:
- arangodb:
- condition: service_healthy
+ - arangodb
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8090/v1/health"]
@@ -41,3 +44,7 @@ services:
volumes:
arangodb-data:
+
+networks:
+ backend:
+ internal: true