rm static files container for web

This commit is contained in:
Collin M. Barrett 2019-05-10 20:05:22 -05:00
parent 3c2e9a0bfa
commit c7ca976f59
3 changed files with 6 additions and 10 deletions

View file

@ -1,16 +1,8 @@
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

@ -10,6 +10,9 @@ services:
- reverse-proxy
volumes:
- ./ops/nginx/conf.d:/etc/nginx/conf.d:ro
depends_on:
- web
- api
web:
image: collinbarrett/filterlists.web:latest
@ -20,6 +23,8 @@ services:
target: final
networks:
- reverse-proxy
depends_on:
- api
api:
image: collinbarrett/filterlists.api:latest

View file

@ -28,4 +28,3 @@ 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