From 8625eb81e62f62ef654864e3476eab706ed96203 Mon Sep 17 00:00:00 2001 From: Pablo Fraile Alonso Date: Tue, 10 Oct 2023 14:31:15 +0200 Subject: [PATCH] improve volumes --- docker-compose.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5251006..2142ad4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -44,6 +44,8 @@ services: - PROD=true volumes: - /home/ferran/refuapp-deploy:/config + - frontend_page:/var/www/ + - static_files:/static/ ports: - 443:443 - 80:80 @@ -60,8 +62,18 @@ networks: volumes: postgres_data: - driver: local # Define the driver and options under the volume name + driver: local driver_opts: type: none device: ~/data/ o: bind + frontend_page: + driver: local + driver_opts: + type: none + device: ~/web/ + static_files: + driver: local + driver_opts: + type: none + device: ~/static/