wget https://github.com/goharbor/harbor/releases/download/v2.14.0/harbor-online-installer-v2.14.0.tgz
tar xzvf harbor-online-installer-v2.14.0.tgz
cp harbor.yml.tmpl harbor.yml
nano harbor.yml.tmplhostname:
port: 8080| ipset destroy arvancloud | |
| ipset create arvancloud hash:ip family inet | |
| ipset add arvancloud 185.143.232.0/22 | |
| ipset add arvancloud 188.229.116.16/29 | |
| ipset add arvancloud 94.101.182.0/27 | |
| ipset add arvancloud 2.144.3.128/28 | |
| ipset add arvancloud 89.45.48.64/28 | |
| ipset add arvancloud 37.32.16.0/27 | |
| ipset add arvancloud 37.32.17.0/27 |
wget https://github.com/goharbor/harbor/releases/download/v2.14.0/harbor-online-installer-v2.14.0.tgz
tar xzvf harbor-online-installer-v2.14.0.tgz
cp harbor.yml.tmpl harbor.yml
nano harbor.yml.tmplhostname:
port: 8080| services: | |
| versitygw: | |
| image: ghcr.io/versity/versitygw:v1.0.18 | |
| container_name: versitygw | |
| restart: unless-stopped | |
| ports: | |
| - "127.0.0.1:7070:7070" | |
| command: | |
| - "s3" | |
| - "--access" |
| services: | |
| gitlab-runner: | |
| restart: unless-stopped | |
| image: gitlab/gitlab-runner:alpine | |
| volumes: | |
| - ./config.toml:/etc/gitlab-runner/config.toml:ro | |
| - /var/run/docker.sock:/var/run/docker.sock |
| sudo nano /etc/systemd/resolved.conf | |
| # [Resolve] | |
| DNS=217.218.127.127 217.218.155.155 | |
| FallbackDNS=10.70.95.162 | |
| sudo systemctl restart systemd-resolved | |
| sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf |
As a DevOps engineer, I'll provide a complete setup for integrating Consul with Docker Swarm for service discovery, along with a practical example scenario.
[Docker Swarm Cluster]
│
├── [Manager Nodes] - Run Consul server agents
| services: | |
| victorialogs: | |
| image: victoriametrics/victoria-logs:v1.15.0-victorialogs | |
| command: | |
| - "--storageDataPath=/victoria-logs-data" | |
| - "--httpListenAddr=:9428" | |
| - "--retentionPeriod=5d" | |
| - "--retention.maxDiskSpaceUsageBytes=2Gib" | |
| volumes: | |
| - victorialogs-data:/victoria-logs-data |