blob: c1e958134b0a7fd8163c22e66621c3f980b728c3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|