Added NNGM compose file and add proxy vars to squid
This commit is contained in:
parent
bb6118a66e
commit
ddc2be5a1d
|
@ -32,8 +32,10 @@ services:
|
||||||
container_name: bridgehead-squid
|
container_name: bridgehead-squid
|
||||||
image: ubuntu/squid
|
image: ubuntu/squid
|
||||||
environment:
|
environment:
|
||||||
http_proxy: ""
|
http_proxy: ${http_proxy}
|
||||||
https_proxy: ""
|
https_proxy: ${https_proxy}
|
||||||
|
volumes:
|
||||||
|
- "bridgehead-proxy:/var/log/squid"
|
||||||
|
|
||||||
## Needs internal proxy config
|
## Needs internal proxy config
|
||||||
landing:
|
landing:
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
version: "3.7"
|
version: "3.7"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
### Does not need proxy settings
|
|
||||||
traefik:
|
traefik:
|
||||||
container_name: bridgehead-traefik
|
container_name: bridgehead-traefik
|
||||||
image: traefik:2.4
|
image: traefik:2.4
|
||||||
|
@ -10,30 +9,27 @@ services:
|
||||||
- --entrypoints.web.address=:80
|
- --entrypoints.web.address=:80
|
||||||
- --entrypoints.websecure.address=:443
|
- --entrypoints.websecure.address=:443
|
||||||
- --providers.docker=true
|
- --providers.docker=true
|
||||||
- --providers.file.directory=/configuration/
|
|
||||||
- --entrypoints.web.http.redirections.entrypoint.to=websecure
|
- --entrypoints.web.http.redirections.entrypoint.to=websecure
|
||||||
- --entrypoints.web.http.redirections.entrypoint.scheme=https
|
- --entrypoints.web.http.redirections.entrypoint.scheme=https
|
||||||
- --providers.file.watch=true
|
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
volumes:
|
volumes:
|
||||||
- ../certs:/tools/certs
|
- ../certs:/tools/certs
|
||||||
- ../tools/traefik/:/configuration/
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- ../auth/:/auth
|
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
||||||
|
|
||||||
### Does need to know the outside proxy to connect central components
|
### Does need to know the outside proxy to connect central components
|
||||||
forward_proxy:
|
forward_proxy:
|
||||||
container_name: bridgehead-squid
|
container_name: bridgehead-squid
|
||||||
image: ubuntu/squid
|
image: ubuntu/squid
|
||||||
environment:
|
environment:
|
||||||
http_proxy: ""
|
http_proxy: ${http_proxy}
|
||||||
https_proxy: ""
|
https_proxy: ${https_proxy}
|
||||||
|
volumes:
|
||||||
|
- "bridgehead-proxy:/var/log/squid"
|
||||||
|
|
||||||
## Needs internal proxy config
|
## Needs internal proxy config
|
||||||
landing:
|
landing:
|
||||||
|
@ -46,29 +42,44 @@ services:
|
||||||
- "traefik.http.routers.landing.rule=PathPrefix(`/`)"
|
- "traefik.http.routers.landing.rule=PathPrefix(`/`)"
|
||||||
- "traefik.http.services.landing.loadbalancer.server.port=80"
|
- "traefik.http.services.landing.loadbalancer.server.port=80"
|
||||||
- "traefik.http.routers.landing.tls=true"
|
- "traefik.http.routers.landing.tls=true"
|
||||||
|
|
||||||
|
|
||||||
nngm-connector:
|
nngm-connector:
|
||||||
|
container_name: bridgehead-nngm-connector
|
||||||
image: "samply/share-client:nngm-feature-environmentPreconfiguration"
|
image: "samply/share-client:nngm-feature-environmentPreconfiguration"
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: "123"
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
|
NNGM_MAGICPL_APIKEY: ${NNGM_MAGICPL_APIKEY}
|
||||||
|
NNGM_MAINZELLISTE_APIKEY: ${NNGM_MAINZELLISTE_APIKEY}
|
||||||
|
NNGM_CTS_APIKEY: ${NNGM_CTS_APIKEY}
|
||||||
|
NNGM_CRYPTKEY: ${NNGM_CRYPTKEY}
|
||||||
volumes:
|
volumes:
|
||||||
- "nngm-connector-logs:/usr/local/tomcat/logs"
|
- "nngm-connector-logs:/usr/local/tomcat/logs"
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.nngm_connector.rule=PathPrefix(`/nngm-connector`)"
|
- "traefik.http.routers.nngm_connector.rule=PathPrefix(`/nngm-connector`)"
|
||||||
- "traefik.http.services.nngm_connector.loadbalancer.server.port=8080"
|
- "traefik.http.services.nngm_connector.loadbalancer.server.port=8080"
|
||||||
- "traefik.http.routers.landing.tls=true"
|
- "traefik.http.routers.nngm_connector.tls=true"
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- "nngm-connector-db"
|
- "nngm-connector-db"
|
||||||
- "forward_proxy"
|
- "forward_proxy"
|
||||||
|
ports:
|
||||||
|
- 5005:5005
|
||||||
restart: "always"
|
restart: "always"
|
||||||
|
|
||||||
nngm-connector-db:
|
nngm-connector-db:
|
||||||
|
container_name: bridgehead-nngm-connector-db
|
||||||
image: "postgres:10.17"
|
image: "postgres:10.17"
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: "share_v2"
|
POSTGRES_DB: "share_v2"
|
||||||
POSTGRES_USER: "samplyweb"
|
POSTGRES_USER: "samplyweb"
|
||||||
POSTGRES_PASSWORD: "123"
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
- "nngm-connector-db-data:/var/lib/postgresql/data"
|
- "nngm-connector-db-data:/var/lib/postgresql/data"
|
||||||
restart: "always"
|
restart: "always"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
nngm-connector-db-data:
|
||||||
|
nngm-connector-logs:
|
||||||
|
bridgehead-proxy:
|
Loading…
Reference in New Issue