https://github.com/lndj/traefik-with-swarm
A traefik demo with docker swarm for little / personal project (You don't need k8s).
https://github.com/lndj/traefik-with-swarm
docker-swarm https letsencrypt traefik traefik-v2
Last synced: 6 months ago
JSON representation
A traefik demo with docker swarm for little / personal project (You don't need k8s).
- Host: GitHub
- URL: https://github.com/lndj/traefik-with-swarm
- Owner: lndj
- License: mit
- Created: 2019-11-28T02:00:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-12T02:18:38.000Z (over 4 years ago)
- Last Synced: 2024-10-30T17:48:33.009Z (11 months ago)
- Topics: docker-swarm, https, letsencrypt, traefik, traefik-v2
- Homepage:
- Size: 7.81 KB
- Stars: 26
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Traefix Proxy With Docker SwarmA traefik demo with docker swarm for little / personal project (You don't need k8s).
# Feature
1. Auto https With Let's encrypt.
2. Auto load balance.
3. Proxy dashboard.# Getting started
1. Create a docker network
```shell
docker network create -d overlay proxy-net
```
More info: [Docker document](https://docs.docker.com/engine/reference/commandline/network_create/)2. Create traefik stack
```shell
docker swarm initdocker stack deploy -c traefik-proxy-compose.yml traefik-proxy
```3. Start your service
```shell
docker stack deploy -c service-compose.yml my-service
```# Remark
When use traefik dashboard with http basic auth, use this command generate password:
```shell
echo $(htpasswd -nb user yourpassword) | sed -e s/\\$/\\$\\$/g
```