Skip to content

Commit

Permalink
Connecting services via traefik network
Browse files Browse the repository at this point in the history
  • Loading branch information
westfood committed Jan 5, 2025
1 parent 2c299b8 commit 87a980f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/files/traefik/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ services:
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock

networks:
traefik:
name: traefik
7 changes: 7 additions & 0 deletions ci/templates/docker-compose.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ services:
read_only: true
labels:
- {{ pywb_traefik_configuration }}
networks:
- traefik
{# whoami:
# A container that exposes an API to show its IP address
image: traefik/whoami
labels:
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`) || Host(`10.3.0.21`)" #}

networks:
traefik:
name: traefik
external: true

0 comments on commit 87a980f

Please sign in to comment.