diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 50ba8321b..8481650ea 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -1,7 +1,16 @@ version: "3.7" +services: + web: + volumes: + - web-static:/app/wwwroot + networks: # https://github.com/collinbarrett/wp-host-on-containers/blob/master/docker-compose.nginx.yml reverse-proxy: external: name: wp-host_reverse-proxy + +volumes: + web-static: + \ No newline at end of file diff --git a/src/FilterLists.Web/Dockerfile b/src/FilterLists.Web/Dockerfile index 4b87eb9a3..bf7268737 100644 --- a/src/FilterLists.Web/Dockerfile +++ b/src/FilterLists.Web/Dockerfile @@ -28,4 +28,4 @@ RUN dotnet publish -c Release -o out --no-restore # run FROM runtime as final COPY --from=build /app/src/FilterLists.Web/out ./ - \ No newline at end of file +VOLUME /app/wwwroot