Adding labels for the Traefik reverse proxy
This commit is contained in:
parent
58ec4f1539
commit
f41f710f0d
1 changed files with 11 additions and 0 deletions
|
@ -20,6 +20,13 @@ services:
|
||||||
- 3000
|
- 3000
|
||||||
volumes:
|
volumes:
|
||||||
- ../data/spee.ch:/data
|
- ../data/spee.ch:/data
|
||||||
|
labels:
|
||||||
|
# https://docs.traefik.io/user-guide/docker-and-lets-encrypt/
|
||||||
|
- "traefik.backend=speech"
|
||||||
|
- "traefik.docker.network=green"
|
||||||
|
- "traefik.frontend.rule=Host:YOURDOMAINHERE"
|
||||||
|
- "traefik.expose=true"
|
||||||
|
- "traefik.port=3000"
|
||||||
networks:
|
networks:
|
||||||
green:
|
green:
|
||||||
ipv4_address: 10.5.0.6
|
ipv4_address: 10.5.0.6
|
||||||
|
@ -40,6 +47,8 @@ services:
|
||||||
## host volumes for persistent data such as wallet private keys.
|
## host volumes for persistent data such as wallet private keys.
|
||||||
volumes:
|
volumes:
|
||||||
- ../data/lbrynet:/data
|
- ../data/lbrynet:/data
|
||||||
|
labels:
|
||||||
|
test: traefik.enable=false
|
||||||
networks:
|
networks:
|
||||||
green:
|
green:
|
||||||
ipv4_address: 10.5.0.7
|
ipv4_address: 10.5.0.7
|
||||||
|
@ -63,6 +72,8 @@ services:
|
||||||
- 3306
|
- 3306
|
||||||
volumes:
|
volumes:
|
||||||
- ../data/db:/var/lib/mysql
|
- ../data/db:/var/lib/mysql
|
||||||
|
labels:
|
||||||
|
test: traefik.enable=false
|
||||||
networks:
|
networks:
|
||||||
green:
|
green:
|
||||||
ipv4_address: 10.5.0.8
|
ipv4_address: 10.5.0.8
|
||||||
|
|
Loading…
Reference in a new issue