From 8dc537012aef96724a77f8c451736c6d514a1e29 Mon Sep 17 00:00:00 2001 From: Pablo Fraile Alonso Date: Tue, 24 Oct 2023 17:02:31 +0200 Subject: [PATCH] build(prod): add static file volume --- docker-compose.prod.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index aaa277a..80e04d3 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -6,6 +6,8 @@ services: args: - BACKEND_URL=${FRONTEND_API_URL} - SENSORS_BACKEND_URL=${FRONTEND_SENSORS_API_URL} + volumes: + - static_files:/app/static refuapp-admin-frontend: build: @@ -45,3 +47,9 @@ volumes: type: none device: /home/ferran/data-sensors o: bind + static_files: + driver: local + driver_opts: + type: none + device: /home/ferran/static + o: bind