Skip to content

Commit 2cb2a03

Browse files
committed
Give glitchtip-worker direct LAN access via ipvlan network
Replaces the ineffective proxy-network approach with an ipvlan interface on the host's physical NIC (NETWORK_INTERFACE in .env), following the same pattern as mdns-repeater. Worker retains db/redis/mail connectivity alongside the new lan interface. Made-with: Cursor
1 parent e851b6f commit 2cb2a03

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

apps/glitchtip/.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ CELERY_WORKER_MAX_TASKS_PER_CHILD=10000
2525
# Set to True to allow new user registrations; disable once initial accounts exist
2626
ENABLE_USER_REGISTRATION=False
2727

28+
# Host network interface for the worker's ipvlan LAN network (e.g. eth0, ens3)
29+
# Run 'ip link' on the host to find the right interface name.
30+
NETWORK_INTERFACE=eth0
31+
2832
# Image versions
2933
#IMAGE_VERSION=latest
3034
#REDIS_IMAGE_VERSION=7-alpine

apps/glitchtip/docker-compose.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ services:
5252
- .env
5353
networks:
5454
- db
55-
- proxy
5655
- redis
5756
- mail
57+
- lan
5858
depends_on:
5959
glitchtip-redis:
6060
condition: service_healthy
@@ -86,3 +86,11 @@ networks:
8686
name: postfix-net
8787
redis:
8888
name: glitchtip-redis-net
89+
lan:
90+
driver: ipvlan
91+
driver_opts:
92+
parent: "${NETWORK_INTERFACE}"
93+
# ipam:
94+
# config:
95+
# - subnet: 192.168.1.0/24
96+
# gateway: 192.168.1.1

0 commit comments

Comments
 (0)