fix: create networks as bridge instead of external #6
Closed
Hermes
wants to merge 1 commits from
fix/network-creation into master
pull from: fix/network-creation
merge into: gortium:master
gortium:master
gortium:feat/worldmonitor
gortium:feat/honcho-only
gortium:merge/drop-fork-use-plugins-into-master
gortium:feat/drop-multi-memory
gortium:feat/drop-fork-use-plugins
gortium:feat/honcho-only-rebased
gortium:fix/multi-gateway-path
gortium:fix/hermes-build
gortium:fix/remove-venv-mount
gortium:feat/multi-profile-gateways
gortium:feat/memory-providers
gortium:fix/matrix-bridge-dependencies
gortium:workspace-recovery-may21
gortium:merge/network-creation-fix
gortium:fix/matrix-bridge-deps
gortium:merge-all-prs-7-to-11
gortium:feat/ai-chromium-packages
gortium:fix/combined-network-bridge
gortium:feat/env-example-paperclip
gortium:feat/dockerfile-pr1-curl-poppler-imagemagick
gortium:feat/ai-base-image-temp
gortium:feat/7zz-chm-extraction-v3
gortium:feat/texlive-latex-v2
gortium:feat/hermes-chromium-packages
gortium:feat/qemu-cross-compile-4
gortium:env-vars-for-domain
gortium:feat/honcho-memory-provider
gortium:feat/hermes-dockerfile-workdir-httpx
gortium:merge/matrix-bridge-fix
gortium:feat/hermes-workspace-combined
gortium:feat/hermes-workspace-combined-entrypoint
gortium:feat/hermes-dashboard-env-healthchecks
gortium:feat/add-dashi-dashboard
gortium:feat/hermes-workspace
gortium:feat/hermes-workers
gortium:feat/add-paperclip
gortium:feat/hermes-chromium-dockerfile
gortium:feat/hermes-worker-anchor
gortium:feat/syncthing-org-sync
gortium:feat/docker-add-7zz-chm-extraction
gortium:fix/vpn-iptables-nft-v3
gortium:fix/vpn-iptables-nft-v2
gortium:fix/vpn-iptables-nft-upstream
gortium:feat/act-runner
gortium:fix/himalaya-email-cli
gortium:fix/wg-easy-iptables-nft
gortium:feat/hermes-custom-tools-startup
gortium:feat/hermes-fork-dockerfile
gortium:fix/hermes-timezone-v2
gortium:feat/wireguard-vpn
gortium:feat/hermes-voice-gpu-support
gortium:feature/hermes-browser-v2
gortium:feat/dockerfile-pr3-latex
gortium:feat/dockerfile-pr2-chromium-browser
gortium:feat/dockerfile-pr4-qemu
gortium:feat/dockerfile-pr5-emacs
gortium:fix/hermes-timezone-setting
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "fix/network-creation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Docker stacks fail to start with error about missing external networks. The backup_net network (and all other networks) are declared as external: true but never created, causing a chicken-and-egg problem.
Root Cause
Both network/compose.yml and backup/compose.yml declare networks as:
networks:
backup_net:
external: true
name: backup_net
This requires the network to exist before the stack starts, but nothing creates it.
Solution
Changed network declarations from external to bridge driver:
networks:
backup_net:
driver: bridge
name: backup_net
Docker Compose will now automatically create the network when the stack starts.
Affected Networks
Deployment
cd /opt/data/infra
sudo nixos-rebuild switch --flake .#lazyworkhorse
Verification
docker network ls | grep backup_net
docker ps | grep restic
journalctl -u backup_stack -n 20
Pull request closed