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,52 @@
|
|||
# vi: ft=yaml
|
||||
version: "3"
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
data:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=192.168.30.10,nolock,soft,rw"
|
||||
device: ":/mnt/data/freshrss/data"
|
||||
extensions:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=192.168.30.10,nolock,soft,rw"
|
||||
device: ":/mnt/data/freshrss/extensions"
|
||||
|
||||
services:
|
||||
freshrss:
|
||||
image: freshrss/freshrss:edge
|
||||
networks:
|
||||
- traefik
|
||||
volumes:
|
||||
- type: volume
|
||||
source: data
|
||||
target: /var/www/FreshRSS/data
|
||||
volume:
|
||||
nocopy: true
|
||||
- type: volume
|
||||
source: extensions
|
||||
target: /var/www/FreshRSS/extensions
|
||||
volume:
|
||||
nocopy: true
|
||||
environment:
|
||||
TZ: Europe/Amsterdam
|
||||
CRON_MIN: '2,32'
|
||||
ADMIN_EMAIL: pim@kunis.nl
|
||||
ADMIN_PASSWORD: {{ admin_password }}
|
||||
ADMIN_API_PASSWORD: {{ admin_password }}
|
||||
PUBLISHED_PORT: 443
|
||||
deploy:
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.freshrss.entrypoints=websecure
|
||||
- traefik.http.routers.freshrss.rule=Host(`rss.kun.is`)
|
||||
- traefik.http.routers.freshrss.tls=true
|
||||
- traefik.http.routers.freshrss.tls.certresolver=letsencrypt
|
||||
- traefik.http.routers.freshrss.service=freshrss
|
||||
- traefik.http.services.freshrss.loadbalancer.server.port=80
|
||||
- traefik.docker.network=traefik
|
|
@ -0,0 +1,5 @@
|
|||
- name: Deploy Docker stack
|
||||
docker_stack:
|
||||
name: freshrss
|
||||
compose:
|
||||
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
|
|
@ -0,0 +1,8 @@
|
|||
admin_password: !vault |
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
38363734333534376665616439306566613632303739373661333338356533653334323366326130
|
||||
3031316133383432366639613565656134666338326639360a633263363066613964643665316334
|
||||
63373830663239393137653131326630326465343333346430376536393162383836333130353562
|
||||
3336306561636134650a646433633063316431643466326161303666313765323034343233646566
|
||||
66613330616463346561343561616438643763643465373839303861356133313831303338356430
|
||||
6634653635383833303265316662663631376163636134666565
|
Reference in a new issue