add mount point for static files

This commit is contained in:
Collin M. Barrett 2019-05-08 19:50:54 -05:00
parent c11d017370
commit c3e54420c9
2 changed files with 10 additions and 1 deletions

View file

@ -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:

View file

@ -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 ./
VOLUME /app/wwwroot