Closed Foundsheep closed 12 months ago
Hi there,
In case someone wants to use a volume to gather logs from the services like me, could we change the script as follows and won't there be any problems, or could I just write another line in the volume section?
/nginx/Dockerfile
... COPY --chown=nginx:nginx start.sh /app/start.sh COPY --chown=nginx:nginx default.conf /tmp/default.conf # line added ...
compose.yaml
services: nginx-proxy: ... volumes: - <my-volume-name>:<location-to-logs> # replaced ./nginx/default.conf:/tmp/default.conf ... volume: <my-volume-name>:
I found the answer myself. Basically, I could have two lines in compose.yaml's volumes section
Hi there,
In case someone wants to use a volume to gather logs from the services like me, could we change the script as follows and won't there be any problems, or could I just write another line in the volume section?
/nginx/Dockerfile
compose.yaml