44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
version: '3.9'
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|
|
|
|
volumes:
|
|
tsdproxydata:
|
|
|
|
configs:
|
|
tsdproxy-config:
|
|
external: true
|
|
name: tsdproxy.yaml
|
|
|
|
services:
|
|
tsdproxy:
|
|
image: almeidapaulopt/tsdproxy:1.1.0
|
|
configs:
|
|
- source: tsdproxy-config
|
|
target: /config/tsdproxy.yaml
|
|
uid: "0"
|
|
gid: "0"
|
|
mode: 0444
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- tsdproxydata:/data
|
|
environment:
|
|
- TSDPROXY_AUTHKEY=${TSDPROXY_AUTHKEY}
|
|
- DOCKER_HOST=unix:///var/run/docker.sock
|
|
networks:
|
|
- traefik-public
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.tsdproxy.rule=Host(`proxy.sterl.xyz`)"
|
|
- "traefik.http.routers.tsdproxy.entrypoints=websecure"
|
|
- "traefik.http.routers.tsdproxy.tls.certresolver=cfresolver"
|
|
- "traefik.http.services.tsdproxy.loadbalancer.server.port=8080"
|