diff --git a/README.md b/README.md index 0a24520..d174bde 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,11 @@ It is likely easier to use containers like `podman` or `docker` or the correspon With podman, I have been using +```sh +podman compose up --watch +``` + +If you want, you can run without compose support using ```sh podman compose up --force-recreate --build ``` diff --git a/docker-compose.yaml b/docker-compose.yaml index 755ee6d..9ecaf96 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -9,6 +9,18 @@ services: - "127.0.0.1:8080:8080" volumes: - ./migrations:/opt/conditional/migrations + develop: + watch: + - action: sync+restart + path: ./conditional + target: /opt/conditional/conditional + ignore: + - __pycache__ + - action: sync+restart + path: ./config.py + target: /opt/conditional/config.py + - action: rebuild + path: ./frontend conditional-postgres: image: docker.io/postgres container_name: conditional-postgres