Skip to content

Commit 684e3e5

Browse files
Compose watch (#499)
* added compose support for this * update readme * made sonarqube happy
1 parent f94799a commit 684e3e5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ It is likely easier to use containers like `podman` or `docker` or the correspon
8282

8383
With podman, I have been using
8484

85+
```sh
86+
podman compose up --watch
87+
```
88+
89+
If you want, you can run without compose support using
8590
```sh
8691
podman compose up --force-recreate --build
8792
```

docker-compose.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ services:
99
- "127.0.0.1:8080:8080"
1010
volumes:
1111
- ./migrations:/opt/conditional/migrations
12+
develop:
13+
watch:
14+
- action: sync+restart
15+
path: ./conditional
16+
target: /opt/conditional/conditional
17+
ignore:
18+
- __pycache__
19+
- action: sync+restart
20+
path: ./config.py
21+
target: /opt/conditional/config.py
22+
- action: rebuild
23+
path: ./frontend
1224
conditional-postgres:
1325
image: docker.io/postgres
1426
container_name: conditional-postgres

0 commit comments

Comments
 (0)