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:
|
settings:
|
||||||
compose: docker-compose.prod.yml
|
compose: docker-compose.prod.yml
|
||||||
host: tcp://swarm.autonomic.zone:2376
|
host: tcp://swarm.autonomic.zone:2376
|
||||||
stack_name: autonomic-zone
|
stack_name: jekyll
|
||||||
tlsverify: true
|
tlsverify: true
|
||||||
environment:
|
environment:
|
||||||
PLUGIN_CACERT:
|
PLUGIN_CACERT:
|
||||||
@ -29,6 +29,3 @@ steps:
|
|||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- pull_request
|
|
||||||
|
@ -51,7 +51,3 @@ To stop the container when you're done, you can run:
|
|||||||
```bash
|
```bash
|
||||||
$ docker-compose stop
|
$ 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 \
|
RUN apk --no-cache add \
|
||||||
bash \
|
bash \
|
||||||
|
curl \
|
||||||
g++ \
|
g++ \
|
||||||
git \
|
git \
|
||||||
make
|
make
|
||||||
|
@ -1,28 +1,30 @@
|
|||||||
---
|
---
|
||||||
version: "3.7"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
jekyll:
|
jekyll:
|
||||||
image: decentral1se/autonomic.zone:v2.0.0
|
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:
|
environment:
|
||||||
JEKYLL_ENV: production
|
JEKYLL_ENV: production
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:4000"]
|
||||||
|
interval: 15s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 10
|
||||||
|
start_period: 20s
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
|
||||||
replicas: 1
|
|
||||||
update_config:
|
update_config:
|
||||||
failure_action: rollback
|
failure_action: rollback
|
||||||
placement:
|
order: start-first
|
||||||
constraints:
|
|
||||||
- node.role == manager
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.services.jekyll.loadbalancer.server.port=4000"
|
- "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.entrypoints=web-secure"
|
||||||
- "traefik.http.routers.jekyll.tls.certresolver=staging"
|
- "traefik.http.routers.jekyll.tls.certresolver=production"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
||||||
"extends": [
|
|
||||||
"config:base"
|
|
||||||
]
|
|
||||||
}
|
|
Reference in New Issue
Block a user