-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paul
committed
May 25, 2021
1 parent
6683724
commit 7909141
Showing
5 changed files
with
64 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# ldproxy demo service | ||
|
||
Runs latest | ||
[LDProxy Docker Image from DockerHub](https://hub.docker.com/r/iide/ldproxy). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
version: "3" | ||
|
||
volumes: | ||
ldproxy_data: | ||
|
||
services: | ||
|
||
ldproxy: | ||
|
||
image: iide/ldproxy:latest | ||
|
||
container_name: ldproxy | ||
|
||
# expose: | ||
# - "80" | ||
|
||
ports: | ||
- "80:7080" | ||
|
||
volumes: | ||
- ldproxy_data:/ldproxy/data | ||
|
||
labels: | ||
- "traefik.enable=true" | ||
# local http router | ||
- "traefik.http.routers.ldproxy_lhttp.rule=Host(`local.map5.nl`) || Host(`localhost`) && PathPrefix(`/ldproxy`)" | ||
- "traefik.http.routers.ldproxy_lhttp.entrypoints=http" | ||
- "traefik.http.routers.ldproxy_lhttp.middlewares=secure-headers@file" | ||
# https router | ||
- "traefik.http.routers.ldproxy_https.rule=Host(`oapi.map5.nl`) && PathPrefix(`/ldproxy`)" | ||
- "traefik.http.routers.ldproxy_https.entrypoints=https" | ||
- "traefik.http.routers.ldproxy_https.tls=true" | ||
- "traefik.http.routers.ldproxy_https.tls.certresolver=le" | ||
- "traefik.http.routers.ldproxy_https.tls.options=my_default@file" | ||
- "traefik.http.routers.ldproxy_https.middlewares=secure-headers@file" | ||
|
||
- "traefik.frontend.priority=100" | ||
- "traefik.docker.network=service-network" | ||
|
||
networks: | ||
default: | ||
external: | ||
name: service-network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
./stop.sh | ||
docker-compose up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
docker-compose stop | ||
docker-compose rm --force |