From 54781e2444a71f56e25397990662a1a6be1edfcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Andr=C3=A9?= Date: Wed, 3 Feb 2021 10:57:45 +0100 Subject: [PATCH] For the Docker container. --- Dockerfile | 3 ++- doc.txt | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 doc.txt diff --git a/Dockerfile b/Dockerfile index 28312be..2157237 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,7 @@ RUN update-rc.d nginx defaults COPY nginx.conf /etc/nginx/sites-available/default -#VOLUME /app/API/Data +VOLUME /app/API/Data +VOLUME /app/Front/config CMD ["/start-docker.sh"] \ No newline at end of file diff --git a/doc.txt b/doc.txt new file mode 100644 index 0000000..fcc978e --- /dev/null +++ b/doc.txt @@ -0,0 +1,2 @@ +To build an image "toto" with the version "0.1": docker build . -t toto:0.1 +To run ab image to container with volume : docker run -v C:\toto\logs\config:/app/Front/config -v C:\toto\logs\db:/app/API/Data -p 5080:80/tcp --name Test -it toto:0.1 \ No newline at end of file