manage lewis with nix
move docker swarm ansible to this repo move thecloud ansible to this repo support data disks in terraform
This commit is contained in:
parent
d7ef46b642
commit
111bf68a0a
92 changed files with 2730 additions and 26 deletions
|
@ -0,0 +1,60 @@
|
|||
# vi: ft=yaml
|
||||
version: "3"
|
||||
|
||||
networks:
|
||||
shephard:
|
||||
|
||||
services:
|
||||
app:
|
||||
image: mazzolino/shepherd
|
||||
networks:
|
||||
- shephard
|
||||
environment:
|
||||
TZ: 'Europe/Amsterdam'
|
||||
FILTER_SERVICES: ''
|
||||
IGNORELIST_SERVICES: ""
|
||||
RUN_ONCE_AND_EXIT: "true"
|
||||
APPRISE_SIDECAR_URL: apprise:5000
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /var/run/docker.sock
|
||||
target: /var/run/docker.sock
|
||||
read_only: true
|
||||
deploy:
|
||||
replicas: 0
|
||||
restart_policy:
|
||||
condition: none
|
||||
labels:
|
||||
- swarm.cronjob.enable=true
|
||||
- "swarm.cronjob.schedule=0 2 * * *"
|
||||
- swarm.cronjob.skip-running=true
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
|
||||
scheduler:
|
||||
image: crazymax/swarm-cronjob:latest
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /var/run/docker.sock
|
||||
target: /var/run/docker.sock
|
||||
read_only: true
|
||||
environment:
|
||||
- "TZ=Europe/Amsterdam"
|
||||
- "LOG_LEVEL=info"
|
||||
- "LOG_JSON=false"
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
|
||||
apprise:
|
||||
image: mazzolino/apprise-microservice:0.1
|
||||
environment:
|
||||
NOTIFICATION_URLS: {{ apprise_urls }}
|
||||
networks:
|
||||
- shephard
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
|
@ -0,0 +1,5 @@
|
|||
- name: Deploy Docker stack
|
||||
docker_stack:
|
||||
name: shephard
|
||||
compose:
|
||||
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
|
|
@ -0,0 +1 @@
|
|||
apprise_urls: "apprises://apprise.kun.is:444/shephard"
|
Reference in a new issue