Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Watch mode #65

Open
JoelVenable opened this issue Nov 9, 2021 · 1 comment
Open

Feature request: Watch mode #65

JoelVenable opened this issue Nov 9, 2021 · 1 comment

Comments

@JoelVenable
Copy link

So I have my docker compose file as such...

services:
  mock-api:
    container_name: openapi_mock
    image: muonsoft/openapi-mock
    volumes:
      - ./schema:/schema
    environment:
      OPENAPI_MOCK_SPECIFICATION_URL: '/schema/schema.json'
    ports:
      - '3333:8080'

Is it possible for the container to watch for file changes if the url is a local file? This would greatly help as we use this container in the dev cycle.

@joshmurrayeu
Copy link

Although a dev-mode would be beneficial, you could use something like this, too:

watch -n 10 -d docker-compose up -d --build --force-recreate

watch can be installed on macOS with Brew (brew install watch). I think it's installed by default on Ubuntu and other distros (although, I haven't checked).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants