pleshevski.ru/old/docker-compose.yml

30 lines
818 B
YAML
Raw Normal View History

2023-03-15 15:40:53 +03:00
version: "3.8"
2022-06-03 14:03:58 +03:00
networks:
2023-03-11 09:09:30 +03:00
traefik_public:
2022-06-03 14:03:58 +03:00
external: true
services:
site:
image: $PLESHEVSKI_IMAGE
2022-06-03 14:03:58 +03:00
networks:
2023-03-11 09:09:30 +03:00
- traefik_public
2022-06-03 14:03:58 +03:00
deploy:
replicas: 1
endpoint_mode: vip
update_config:
order: start-first
rollback_config:
order: start-first
labels:
- traefik.enable=true
2023-03-06 00:28:36 +03:00
- traefik.constraint-label=magenta_public
2023-03-09 16:01:19 +03:00
- 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