diff options
| author | fox <fox@fakecake.org> | 2026-10-26 20:10:04 +0300 |
|---|---|---|
| committer | GitLab <noreply@fakecake.org> | 2026-10-26 20:10:04 +0300 |
| commit | ea00a18082ab0144cb320434e25bc2c11d16e9a1 (patch) | |
| tree | c980eac83739b1b1c9bfae98c574d42983bdc927 /README.md | |
| parent | 094e1b8ce5f732fc3d789792ee36fc01cefbb734 (diff) | |
| parent | adfb195f806c9dfe05e9e21d846fd6d2b2573779 (diff) | |
| download | the-epube-master.tar.gz the-epube-master.tar.xz | |
* switch to different compose setup for dev without using See merge request git/the-epube!79
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/README.md b/README.md index 25e7190..cb40138 100644 --- a/README.md +++ b/README.md @@ -47,22 +47,34 @@ See `.env-dist` for configuration options. Development ----------- +Run the stack with the dev overlay, which bind-mounts the source tree into the +`app` and `web-nginx` containers and exposes PostgreSQL on `127.0.0.1:15432`: + + npm run dev # docker compose -f docker-compose.yml -f docker-compose.dev.yml + npm run dev -- up + npm run dev -- up -d app + npm run dev -- logs -f app + +The overlay is deliberately plain Compose (no `!override` YAML tag), so it works +with both Docker Compose and `podman-compose`, which only concatenates the volume +lists of the two files and keeps the last entry per mount target. + +Docker Compose v2.24+ users who prefer auto-loading may keep a local +`docker-compose.override.yml` instead, where the `!override` tag replaces volume +lists outright: + ```yaml services: - db: - ports: - - 127.0.0.1:15432:5432/tcp - app: volumes: !override - .:/var/www/html/books - ${BOOKS_DIR}:/books:ro - - web-nginx: - volumes: !override - - .:/var/www/html/books:ro ``` +Note that `podman-compose` cannot parse that tag and loads +`docker-compose.override.yml` automatically, so remove or rename the file if you +use `podman-compose` without explicit `-f` arguments. + License ------- |
