29 lines
818 B
YAML
29 lines
818 B
YAML
version: "3.8"
|
|
|
|
networks:
|
|
traefik_public:
|
|
external: true
|
|
|
|
services:
|
|
site:
|
|
image: $PLESHEVSKI_IMAGE
|
|
networks:
|
|
- traefik_public
|
|
deploy:
|
|
replicas: 1
|
|
endpoint_mode: vip
|
|
update_config:
|
|
order: start-first
|
|
rollback_config:
|
|
order: start-first
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.constraint-label=magenta_public
|
|
- traefik.http.routers.to_pleshevski_site.rule=Host(`pleshevski.ru`)
|
|
- traefik.http.routers.to_pleshevski_site.entrypoints=https
|
|
- traefik.http.routers.to_pleshevski_site.tls=true
|
|
- traefik.http.routers.to_pleshevski_site.tls.certresolver=le
|
|
- traefik.http.services.pleshevski_site.loadbalancer.server.port=33334
|
|
placement:
|
|
constraints:
|
|
- node.role == worker
|