I'm working with nginx and Docker for the first time. I have an app that reads/writes to a directory on the file system. I'm trying to setup a dev environment using Docker and I need the nginx image to be able to know this path exists on my dev machine so that it can read from and write to it. Is there anyway to configure this within my docker-compose.yml file?
Asked
Active
Viewed 206 times
0
-
1Use volumes - [docker-compose nginx volumes](https://stackoverflow.com/questions/35995626/docker-compose-share-volume-nginx) – dmitryro Nov 03 '20 at 00:51
-
Are you checking whether the current system is a development or production in the docker container? – Jihoon Yeo Nov 03 '20 at 01:30