fix: ensure betterbahn-proxy service restarts unless stopped

This commit is contained in:
Philip Henning 2025-09-01 10:07:19 +02:00
parent c4b527d5f3
commit 02d070b9dd

View file

@ -12,6 +12,7 @@ services:
betterbahn-proxy: betterbahn-proxy:
image: alpine/socat:latest image: alpine/socat:latest
depends_on: [betterbahn] depends_on: [betterbahn]
restart: unless-stopped
# Share the app's network namespace so we can reach 127.0.0.1:3000 # Share the app's network namespace so we can reach 127.0.0.1:3000
network_mode: "service:betterbahn" network_mode: "service:betterbahn"
command: ["TCP-LISTEN:8080,fork,reuseaddr", "TCP:127.0.0.1:3000"] command: ["TCP-LISTEN:8080,fork,reuseaddr", "TCP:127.0.0.1:3000"]