Add challenge 7
This commit is contained in:
34
7/docker-compose.yml
Normal file
34
7/docker-compose.yml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
# TIP: This is just a sense check, should run without errors. Complicating things slightly by adding a reverse proxy (this is how all co-op cloud services are hosting)
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: git.autonomic.zone/autonomic-cooperative/docker-debugging-disco:0.1.0
|
||||||
|
environment:
|
||||||
|
- CHALLENGE=7
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.docker.network=proxy"
|
||||||
|
- "traefik.http.services.challenge-7.loadbalancer.server.port=80"
|
||||||
|
- "traefik.http.routers.challenge-7.rule=Host(`localhost`)"
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
|
||||||
|
proxy:
|
||||||
|
image: traefik
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
configs:
|
||||||
|
- source: traefik_yml
|
||||||
|
target: /traefik.yml
|
||||||
|
ports:
|
||||||
|
- 8000:80
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
|
||||||
|
configs:
|
||||||
|
traefik_yml:
|
||||||
|
file: traefik.yml
|
13
7/traefik.yml
Normal file
13
7/traefik.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
api:
|
||||||
|
dashboard: false
|
||||||
|
insecure: true
|
||||||
|
entryPoints:
|
||||||
|
web:
|
||||||
|
address: ":80"
|
||||||
|
serversTransport:
|
||||||
|
insecureSkipVerify: true
|
||||||
|
providers:
|
||||||
|
docker:
|
||||||
|
endpoint: "unix:///var/run/docker.sock"
|
||||||
|
# exposedByDefault: false
|
||||||
|
network: proxy # Optional; Only use the "proxy" Docker network, even if containers are on multiple networks.
|
Reference in New Issue
Block a user