# The CI overlay. It changes nothing about what the stack is — only about how # nginx's config gets into the upstream container. # # Why it exists, measured on Gitea Actions run 2346 (head 1ada354): the job's # workspace is a path inside the runner's job container, while the docker daemon # is the host's, reached through a mounted /var/run/docker.sock. A relative bind # mount written in docker-compose.yml is resolved by the daemon on the host, # where /workspace/para/openwaf/deploy/upstream.conf does not exist, so Docker # makes a directory out of it and the mount dies: # not a directory: Are you trying to mount a directory onto a file (or # vice-versa)? # A named volume carries the same bytes on a path the daemon owns. The CI step # that fills it is in .github/workflows/ci.yml; compose names the volume # "_openwaf-upstream-conf", which is what that step creates. # # `!override` replaces the base volumes list instead of appending to it — without # it the broken file mount would still be there next to this one. # # Local runs and the README demo do not use this file: compose only reads it when # COMPOSE_FILE names it, which only the workflow does. services: upstream: volumes: !override - openwaf-upstream-conf:/etc/nginx/conf.d:ro volumes: openwaf-upstream-conf: