The visit counter is down. It should count page views in Redis, and Redis already holds 41 visits in the counter-data volume.
Target state:
text
host :8080 ──► counter ──► redis :6379 (not published)
└──── counter-net ────┘
└─ volume counter-data at /datacounter(stackmonsters/visit-counter:1.0) runs oncounter-netwith host port 8080 published.redis(redis:7.4) runs oncounter-net, publishes no port, and keepscounter-dataat/data.curl localhost:8080continues the count:Visits: 42or higher.
Keep the container names counter and redis.
Start with:
Use the logs, docker inspect and docker network inspect to find every fault before you change anything.