Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m-adamski/traefik-configuration

Traefik Docker configuration
https://github.com/m-adamski/traefik-configuration

docker docker-compose traefik

Last synced: 26 days ago
JSON representation

Traefik Docker configuration

Awesome Lists containing this project

README

        

# Traefik Docker configuration

Traefik documentation page: https://doc.traefik.io/traefik/

## Containers configuration
Sample configuration of all containers to be handled by traefik.

```yaml
version: "3.9"

services:
example:
image: example/example:latest
container_name: example-container
labels:
- traefik.enable=true
- traefik.http.services.example.loadbalancer.server.port=8080
- traefik.http.routers.example.rule=Host(`example.com`)
- traefik.http.routers.example.tls=true
networks:
- default
- reverse-proxy-network
restart: always
depends_on:
- database

networks:
reverse-proxy-network:
external: true
default:
driver: bridge
external: false
````