We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Should be as simple as a file like the following into a file called docker-compose.yml:
docker-compose.yml
json_server: build: . command: 'sh run.sh' working_dir: /data ports: - '80:80'
Then, perhaps you could later map the volume in via docker-compose instead of via the Dockerfile:
json_server: build: . command: 'sh run.sh' working_dir: /data ports: - '80:80' volumes: - ./data:/data
The text was updated successfully, but these errors were encountered:
You can use the image attribute like this.
image
api_stub: image: clue/json-server volumes: - ./api.json:/data/db.json ports: - '1337:80'
(Note that I'm intentionally mapping a really obvious external port 1337)
1337
Sorry, something went wrong.
You can use the image attribute like this. api_stub: image: clue/json-server volumes: - ./api.json:/data/db.json ports: - '1337:80' (Note that I'm intentionally mapping a really obvious external port 1337)
The --watch feature does not work when you mount file instead of folder
#8 (comment)
No branches or pull requests
Should be as simple as a file like the following into a file called
docker-compose.yml
:Then, perhaps you could later map the volume in via docker-compose instead of via the Dockerfile:
The text was updated successfully, but these errors were encountered: