Add networks for komodo

This commit is contained in:
2025-08-15 18:52:47 +05:30
parent 80dd317e3c
commit 38e8b6ec27
2 changed files with 21 additions and 0 deletions

View File

@@ -11,6 +11,8 @@ services:
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- ./db:/var/lib/postgresql/data
networks:
- backend
healthcheck:
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
interval: 10s
@@ -31,6 +33,8 @@ services:
- FERRETDB_POSTGRESQL_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@komodo_db:5432/${POSTGRES_DB}
volumes:
- ./ferretdb:/state
networks:
- backend
komodo_core:
container_name: komodo_core
@@ -48,6 +52,9 @@ services:
- ./repo-cache:/repo-cache
ports:
- 9120:9120
networks:
- frontend
- backend
komodo_periphery:
container_name: komodo_periphery
@@ -59,3 +66,11 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
- /proc:/proc
- ${PERIPHERY_ROOT_DIRECTORY}:${PERIPHERY_ROOT_DIRECTORY} #Change me
networks:
- backend
networks:
frontend:
external: true
backend:
external: true