-
Notifications
You must be signed in to change notification settings - Fork 0
/
pb_raspi_docker_rss.yml
42 lines (39 loc) · 1.19 KB
/
pb_raspi_docker_rss.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
- hosts: 192.168.2.15
remote_user: "{{ansible_ssh_user}}"
vars:
docker_network_name: "pi"
rss_dir: "/home/{{ansible_ssh_user}}/docker-rss"
tasks:
# Siehe: https://docs.ansible.com/ansible/latest/modules/docker_container_module.html
# Caddy Docs: https://caddyserver.com/docs/
- name: Create the Rss config directory
file:
path: "{{rss_dir}}"
owner: "1000"
group: "1000"
state: directory
become: yes
- name: Start the feedpushr server container
docker_container:
name: rss
pull: yes
image: ncarlier/feedpushr
restart_policy: unless-stopped
restart: yes
detach: yes
env:
TZ: "Europe/Berlin"
FP_PUBLIC_URL: "https://{{ansible_webserver_domain}}/rss"
FP_DB: "boltdb:///data/data.db"
ports:
# Syntax: Hostport : Container Port
- "127.0.0.1:27070:8080"
volumes:
- /home/pascal/docker-rss:/data/
# - /home/pascal/docker-rss:/usr/local/share/",
state: started
networks:
- name: "{{ docker_network_name }}"
purge_networks: yes
networks_cli_compatible: yes