Migrating to swarm setup
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6c169e26d0
commit
e9d0088195
@ -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
|
||||
|
@ -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.
|
||||
|
@ -4,6 +4,7 @@ EXPOSE 4000
|
||||
|
||||
RUN apk --no-cache add \
|
||||
bash \
|
||||
curl \
|
||||
g++ \
|
||||
git \
|
||||
make
|
||||
|
@ -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:
|
||||
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:base"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user