Migrating to swarm setup
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-06-24 15:08:50 +02:00
parent 6c169e26d0
commit e9d0088195
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
5 changed files with 13 additions and 23 deletions

View File

@ -17,7 +17,7 @@ steps:
settings:
compose: docker-compose.prod.yml
host: tcp://swarm.autonomic.zone:2376
stack_name: autonomic-zone
stack_name: jekyll
tlsverify: true
environment:
PLUGIN_CACERT:
@ -29,6 +29,3 @@ steps:
trigger:
branch:
- master
event:
exclude:
- pull_request

View File

@ -51,7 +51,3 @@ To stop the container when you're done, you can run:
```bash
$ docker-compose stop
```
## Production
Our [drone.autonomic.zone](https://drone.autonomic.zone/autonomic-cooperative/autonomic.zone/) configuration automatically deploys.

View File

@ -4,6 +4,7 @@ EXPOSE 4000
RUN apk --no-cache add \
bash \
curl \
g++ \
git \
make

View File

@ -1,28 +1,30 @@
---
version: "3.7"
version: "3.8"
services:
jekyll:
image: decentral1se/autonomic.zone:v2.0.0
command: jekyll serve --host 0.0.0.0 --trace
command: bundle exec jekyll serve --host 0.0.0.0 --trace
environment:
JEKYLL_ENV: production
networks:
- proxy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000"]
interval: 15s
timeout: 10s
retries: 10
start_period: 20s
deploy:
mode: replicated
replicas: 1
update_config:
failure_action: rollback
placement:
constraints:
- node.role == manager
order: start-first
labels:
- "traefik.enable=true"
- "traefik.http.services.jekyll.loadbalancer.server.port=4000"
- "traefik.http.routers.jekyll.rule=Host(`site.swarm.autonomic.zone`)"
- "traefik.http.routers.jekyll.rule=Host(`autonomic.zone`)"
- "traefik.http.routers.jekyll.entrypoints=web-secure"
- "traefik.http.routers.jekyll.tls.certresolver=staging"
- "traefik.http.routers.jekyll.tls.certresolver=production"
networks:
proxy:

View File

@ -1,6 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
}