mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
build: re-work docker-compose for VS debugging of web
This commit is contained in:
parent
6449ba2ac1
commit
ee7b717b61
4 changed files with 22 additions and 20 deletions
|
|
@ -7,11 +7,8 @@ services:
|
|||
image: nginx:alpine
|
||||
ports:
|
||||
- "80:80"
|
||||
networks:
|
||||
- reverse_proxy
|
||||
depends_on:
|
||||
- web
|
||||
- directory.api
|
||||
volumes:
|
||||
- ./reverse-proxy/svr-includes:/etc/nginx/svr-includes:ro
|
||||
- ./reverse-proxy/conf.d.dev:/etc/nginx/conf.d:ro
|
||||
|
||||
directory.db:
|
||||
command: ["postgres", "-c", "log_statement=all"]
|
||||
|
|
@ -3,11 +3,16 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
reverse_proxy:
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./reverse-proxy/conf.d.dev:/etc/nginx/conf.d:ro
|
||||
|
||||
directory.api:
|
||||
build:
|
||||
dockerfile: directory/src/FilterLists.Directory.Api/debug.Dockerfile
|
||||
ports:
|
||||
- "80"
|
||||
environment:
|
||||
- ASPNETCORE_ENVIRONMENT=Development
|
||||
- ASPNETCORE_URLS=http://+:80
|
||||
|
|
|
|||
|
|
@ -7,16 +7,6 @@ services:
|
|||
image: nginx:alpine
|
||||
ports:
|
||||
- "443:443"
|
||||
networks:
|
||||
- reverse_proxy
|
||||
depends_on:
|
||||
- web
|
||||
- directory.api
|
||||
volumes:
|
||||
- ./reverse-proxy/svr-includes:/etc/nginx/svr-includes:ro
|
||||
- ./reverse-proxy/conf.d:/etc/nginx/conf.d:ro
|
||||
- ~/cert:/etc/nginx/cert:ro
|
||||
|
||||
web:
|
||||
build:
|
||||
context: . # hack for https://github.com/docker/compose/issues/4047
|
||||
- ~/cert:/etc/nginx/cert:ro
|
||||
|
|
@ -1,6 +1,16 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
reverse_proxy:
|
||||
image: nginx:alpine
|
||||
networks:
|
||||
- reverse_proxy
|
||||
depends_on:
|
||||
- web
|
||||
- directory.api
|
||||
volumes:
|
||||
- ./reverse-proxy/svr-includes:/etc/nginx/svr-includes:ro
|
||||
|
||||
web:
|
||||
image: ${DOCKER_REGISTRY-}filterlists_web
|
||||
build:
|
||||
|
|
@ -39,4 +49,4 @@ networks:
|
|||
directory:
|
||||
|
||||
volumes:
|
||||
directory.db:
|
||||
directory.db:
|
||||
Loading…
Reference in a new issue