mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
build: 🔨 work on builds
This commit is contained in:
parent
9ddd58554c
commit
11148e0d19
6 changed files with 57 additions and 14 deletions
17
docker-compose.dev.yml
Normal file
17
docker-compose.dev.yml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# overrides for local development (outside of Visual Studio)
|
||||
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
reverse_proxy:
|
||||
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
|
||||
|
|
@ -3,11 +3,11 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
filterlists.directory.api:
|
||||
directory.api:
|
||||
build:
|
||||
dockerfile: directory/src/FilterLists.Directory.Api/debug.Dockerfile
|
||||
ports:
|
||||
- "80"
|
||||
environment:
|
||||
- ASPNETCORE_ENVIRONMENT=Development
|
||||
- ASPNETCORE_URLS=http://+:80
|
||||
ports:
|
||||
- "80"
|
||||
|
|
|
|||
|
|
@ -3,20 +3,20 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
filterlists.reverse_proxy:
|
||||
reverse_proxy:
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- "443:443"
|
||||
networks:
|
||||
- reverse_proxy
|
||||
depends_on:
|
||||
- filterlists.web
|
||||
- filterlists.directory.api
|
||||
- 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
|
||||
|
||||
filterlists.web:
|
||||
web:
|
||||
build:
|
||||
context: . # hack for https://github.com/docker/compose/issues/4047
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
filterlists.web:
|
||||
web:
|
||||
image: ${DOCKER_REGISTRY-}filterlists_web
|
||||
build:
|
||||
context: ./web
|
||||
networks:
|
||||
- reverse_proxy
|
||||
depends_on:
|
||||
- filterlists.directory.api
|
||||
- directory.api
|
||||
|
||||
filterlists.directory.api:
|
||||
directory.api:
|
||||
image: ${DOCKER_REGISTRY-}filterlists_directory_api
|
||||
build:
|
||||
context: ./services
|
||||
|
|
@ -19,13 +19,13 @@ services:
|
|||
- reverse_proxy
|
||||
- directory
|
||||
depends_on:
|
||||
- filterlists.directory.db
|
||||
- directory.db
|
||||
volumes:
|
||||
- directory.db:/var/lib/postgresql/data
|
||||
environment:
|
||||
ConnectionStrings__DirectoryConnection: ${DIRECTORY_CONNECTION_STRING}
|
||||
|
||||
filterlists.directory.db:
|
||||
directory.db:
|
||||
image: postgres:alpine
|
||||
networks:
|
||||
- directory
|
||||
|
|
|
|||
26
reverse-proxy/conf.d.dev/filterlists.conf
Normal file
26
reverse-proxy/conf.d.dev/filterlists.conf
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
server {
|
||||
listen 80 default_server;
|
||||
|
||||
location ^~ /api {
|
||||
rewrite ^/api/(.*)$ /$1 break;
|
||||
proxy_pass http://directory.api:80;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection keep-alive;
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://web:80;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection keep-alive;
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
|
|
@ -11,7 +11,7 @@ server {
|
|||
|
||||
location ^~ /api {
|
||||
rewrite ^/api/(.*)$ /$1 break;
|
||||
proxy_pass http://filterlists.directory.api:80;
|
||||
proxy_pass http://directory.api:80;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection keep-alive;
|
||||
|
|
@ -22,7 +22,7 @@ server {
|
|||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://filterlists.web:80;
|
||||
proxy_pass http://web:80;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection keep-alive;
|
||||
|
|
|
|||
Loading…
Reference in a new issue