ci: move to new traefik network
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Dmitriy Pleshevskiy 2023-03-11 09:09:30 +03:00
parent 84576e9cd9
commit e719f5f8ee
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
2 changed files with 6 additions and 6 deletions

View file

@ -5,15 +5,15 @@ pipeline:
build-docker-image: build-docker-image:
image: plugins/docker image: plugins/docker
settings: settings:
repo: git.pleshevski.ru/${CI_REPO} repo: ${ORG_REGISTRY}/${CI_REPO}
tags: tags:
- ${CI_COMMIT_BRANCH} - ${CI_COMMIT_BRANCH}
- ${CI_COMMIT_SHA:0:8} - ${CI_COMMIT_SHA:0:8}
deploy: deploy:
image: git.pleshevski.ru/drone_plugins/docker_stack image: ${ORG_REGISTRY}/drone_plugins/docker_stack
pull: true pull: true
environment: environment:
PLESHEVSKI_IMAGE: git.pleshevski.ru/${CI_REPO}:${CI_COMMIT_SHA:0:8} PLESHEVSKI_IMAGE: ${ORG_REGISTRY}/${CI_REPO}:${CI_COMMIT_SHA:0:8}
settings: settings:
name: pleshevski name: pleshevski

View file

@ -1,14 +1,14 @@
version: "3.9" version: "3.9"
networks: networks:
rp_public: traefik_public:
external: true external: true
services: services:
site: site:
image: $PLESHEVSKI_IMAGE image: $PLESHEVSKI_IMAGE
networks: networks:
- rp_public - traefik_public
deploy: deploy:
replicas: 1 replicas: 1
endpoint_mode: vip endpoint_mode: vip
@ -18,7 +18,7 @@ services:
order: start-first order: start-first
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.docker.network=rp_public - traefik.network=traefik_public
- traefik.constraint-label=magenta_public - traefik.constraint-label=magenta_public
- traefik.http.routers.to_pleshevski_site.rule=Host(`pleshevski.ru`) - traefik.http.routers.to_pleshevski_site.rule=Host(`pleshevski.ru`)
- traefik.http.routers.to_pleshevski_site.entrypoints=https - traefik.http.routers.to_pleshevski_site.entrypoints=https