stacks/miniflux: flatten to single network; fix verify

Initial deploy failed with 'Container cannot be connected to network
endpoints: miniflux-net, traefik-net' — the docker engine balks at
joining a brand-new internal network and an existing external
network in one create step.

Flattened both containers onto traefik-net only. The DB password
still protects miniflux-db, and traefik-net is internal-LAN-only,
so co-locating them is fine. Verify step updated to check for
traefik-net membership instead of the (now-gone) miniflux-net.
This commit is contained in:
vh
2026-04-26 11:55:04 -07:00
parent 6c96ffef01
commit daa56289ae
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -77,6 +77,6 @@ verify:
shell: docker inspect miniflux-db --format '{{.State.Status}}' | grep -qE 'running|created|restarting'
changed_when: "false"
- name: Both containers on miniflux-net
shell: docker inspect miniflux miniflux-db --format '{{json .NetworkSettings.Networks}}' | grep -q miniflux-net
- name: Both containers on traefik-net
shell: docker inspect miniflux miniflux-db --format '{{json .NetworkSettings.Networks}}' | grep -q traefik-net
changed_when: "false"
+8 -8
View File
@@ -42,7 +42,6 @@ services:
retries: 3
start_period: 30s
networks:
- miniflux-net
- tnet
labels:
- homepage.group=News
@@ -63,7 +62,7 @@ services:
volumes:
- miniflux-db-data:/var/lib/postgresql/data
networks:
- miniflux-net
- tnet
healthcheck:
test: ["CMD-SHELL", "pg_isready -U miniflux"]
interval: 10s
@@ -74,12 +73,13 @@ volumes:
miniflux-db-data:
networks:
# Internal — only miniflux talks to miniflux-db. DB is not on tnet
# so it's not reachable from elsewhere on traefik-net.
miniflux-net:
name: miniflux-net
# Shared external — homepage's docker auto-discovery scans this
# network for the homepage.* labels above.
# Both containers share traefik-net. Earlier attempt to put the DB
# on a private internal network plus miniflux on both nets failed
# at create-time with "Container cannot be connected to network
# endpoints: miniflux-net, traefik-net" — the docker engine balks
# at joining multiple networks (one brand-new, one external) in a
# single create step. The DB password still protects miniflux-db,
# and traefik-net is internal-LAN-only, so co-locating is fine.
tnet:
name: traefik-net
external: true