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:
@@ -77,6 +77,6 @@ verify:
|
|||||||
shell: docker inspect miniflux-db --format '{{.State.Status}}' | grep -qE 'running|created|restarting'
|
shell: docker inspect miniflux-db --format '{{.State.Status}}' | grep -qE 'running|created|restarting'
|
||||||
changed_when: "false"
|
changed_when: "false"
|
||||||
|
|
||||||
- name: Both containers on miniflux-net
|
- name: Both containers on traefik-net
|
||||||
shell: docker inspect miniflux miniflux-db --format '{{json .NetworkSettings.Networks}}' | grep -q miniflux-net
|
shell: docker inspect miniflux miniflux-db --format '{{json .NetworkSettings.Networks}}' | grep -q traefik-net
|
||||||
changed_when: "false"
|
changed_when: "false"
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
start_period: 30s
|
start_period: 30s
|
||||||
networks:
|
networks:
|
||||||
- miniflux-net
|
|
||||||
- tnet
|
- tnet
|
||||||
labels:
|
labels:
|
||||||
- homepage.group=News
|
- homepage.group=News
|
||||||
@@ -63,7 +62,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- miniflux-db-data:/var/lib/postgresql/data
|
- miniflux-db-data:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
- miniflux-net
|
- tnet
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U miniflux"]
|
test: ["CMD-SHELL", "pg_isready -U miniflux"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@@ -74,12 +73,13 @@ volumes:
|
|||||||
miniflux-db-data:
|
miniflux-db-data:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
# Internal — only miniflux talks to miniflux-db. DB is not on tnet
|
# Both containers share traefik-net. Earlier attempt to put the DB
|
||||||
# so it's not reachable from elsewhere on traefik-net.
|
# on a private internal network plus miniflux on both nets failed
|
||||||
miniflux-net:
|
# at create-time with "Container cannot be connected to network
|
||||||
name: miniflux-net
|
# endpoints: miniflux-net, traefik-net" — the docker engine balks
|
||||||
# Shared external — homepage's docker auto-discovery scans this
|
# at joining multiple networks (one brand-new, one external) in a
|
||||||
# network for the homepage.* labels above.
|
# single create step. The DB password still protects miniflux-db,
|
||||||
|
# and traefik-net is internal-LAN-only, so co-locating is fine.
|
||||||
tnet:
|
tnet:
|
||||||
name: traefik-net
|
name: traefik-net
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user