about summary refs log tree commit diff stats
path: root/docker-compose.dev.yml
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-10-26 20:07:32 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-10-26 20:07:32 +0300
commitadfb195f806c9dfe05e9e21d846fd6d2b2573779 (patch)
treec980eac83739b1b1c9bfae98c574d42983bdc927 /docker-compose.dev.yml
parent094e1b8ce5f732fc3d789792ee36fc01cefbb734 (diff)
downloadthe-epube-adfb195f806c9dfe05e9e21d846fd6d2b2573779.tar.gz
the-epube-adfb195f806c9dfe05e9e21d846fd6d2b2573779.tar.xz
* switch to different compose setup for dev without using dev
   docker-specific yaml tags
 * add "remove all read" button
Diffstat (limited to 'docker-compose.dev.yml')
-rw-r--r--docker-compose.dev.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml
new file mode 100644
index 0000000..c1e9581
--- /dev/null
+++ b/docker-compose.dev.yml
@@ -0,0 +1,24 @@
+# Dev-only overlay, applied on top of docker-compose.yml:
+#
+#   npm run dev   # podman-compose -f docker-compose.yml -f docker-compose.dev.yml up
+#
+# It intentionally avoids the `!override` YAML tag (a Docker Compose v2.24+
+# extension) so that it also works with podman-compose, which concatenates the
+# volume lists of both files and keeps the last entry per mount target.
+services:
+  db:
+    ports:
+      # expose the database on the host for local tooling
+      - 127.0.0.1:15432:5432/tcp
+
+  app:
+    volumes:
+      # live source checkout instead of the image copy
+      - .:/var/www/html/books
+      # re-declared so it wins over the base entry (last one per target wins)
+      - ${BOOKS_DIR}:/books:ro
+
+  web-nginx:
+    volumes:
+      - .:/var/www/html/books:ro
+      - ${BOOKS_DIR}:/books:ro