Skip to content

Commit 38e1549

Browse files
author
Anze
committed
Safer way of referencing Grafolean backend when on the same host - join the same Docker network
1 parent 7e25252 commit 38e1549

File tree

2 files changed

+13
-53
lines changed

2 files changed

+13
-53
lines changed

docker-compose.dev.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@ services:
2525
- JOBS_REFRESH_INTERVAL=${JOBS_REFRESH_INTERVAL:-60}
2626
- REDIS_HOST=redis
2727
restart: always
28+
networks:
29+
- grafolean
2830

2931

3032
redis:
3133
image: redis:5-alpine
3234
container_name: grafolean-collector-snmp-redis
3335
restart: always
36+
networks:
37+
- grafolean
3438

3539

3640
autoheal:
@@ -42,3 +46,12 @@ services:
4246
volumes:
4347
- /var/run/docker.sock:/var/run/docker.sock
4448
restart: always
49+
networks:
50+
- grafolean
51+
52+
53+
# If running on the same host, join the Grafolean network, so we can reach Grafolean
54+
# backend at address grafolean:80.
55+
networks:
56+
grafolean:
57+
name: grafolean

0 commit comments

Comments
 (0)