Skip to content

Commit defcfb6

Browse files
fix: Use unique container name for Edgehog database (#1125)
Changed the postgres container name from 'postgres' to 'edgehog-db' in the dev-backend recipe to avoid conflicts with existing postgres containers. The generic 'postgres' name is commonly used and can cause issues when running multiple postgres instances on the same system. Signed-off-by: Omar <omar.brbutovic@secomind.com>
1 parent f777024 commit defcfb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ _edgehog-dev-backend:
162162
docker compose down -v
163163
docker compose up -d edgehog-device-forwarder minio minio-init registry registry-auth registry-init
164164
# Init postgres locally, edgehog has to be able to reach it seamlessly
165-
(docker run --name postgres -d -e "POSTGRES_HOST_AUTH_METHOD=trust" -p 5432:5432 --rm postgres && sleep 3) || true # skip if already up
165+
(docker run --name edgehog-db -d -e "POSTGRES_HOST_AUTH_METHOD=trust" -p 5432:5432 --rm postgres && sleep 3) || true # skip if already up
166166
# `astarte` netowrk gateway ip, a.k.a. edgehog's IP
167167
export DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN=edgehog.localhost
168168
export DATABASE_USERNAME=edgehog

0 commit comments

Comments
 (0)