mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-26 06:31:04 +01:00
implemented listmonk base role
This commit is contained in:
parent
d63e933f31
commit
cc52592dbe
@ -205,6 +205,14 @@
|
|||||||
vars:
|
vars:
|
||||||
domain: matomo.{{top_domain}}
|
domain: matomo.{{top_domain}}
|
||||||
http_port: 8018
|
http_port: 8018
|
||||||
|
- name: setup listmonk
|
||||||
|
hosts: listmonk
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- role: docker-listmonk
|
||||||
|
vars:
|
||||||
|
domain: listmonk.{{top_domain}}
|
||||||
|
http_port: 8019
|
||||||
- name: setup akaunting hosts
|
- name: setup akaunting hosts
|
||||||
hosts: akaunting
|
hosts: akaunting
|
||||||
become: true
|
become: true
|
||||||
|
5
roles/docker-listmonk/README.md
Normal file
5
roles/docker-listmonk/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Role Docker Listmonk
|
||||||
|
|
||||||
|
## Further Information
|
||||||
|
- https://listmonk.app/docs/installation/
|
||||||
|
- https://github.com/knadh/listmonk/
|
@ -1,2 +1,2 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- docker-reverse-proxy
|
- nginx-docker-reverse-proxy
|
||||||
|
@ -4,18 +4,24 @@
|
|||||||
|
|
||||||
- name: configure {{domain}}.conf
|
- name: configure {{domain}}.conf
|
||||||
template:
|
template:
|
||||||
src: "roles/docker-reverse-proxy/templates/domain.conf.j2"
|
src: "roles/nginx-docker-reverse-proxy/templates/domain.conf.j2"
|
||||||
dest: "/etc/nginx/conf.d/{{domain}}.conf"
|
dest: "/etc/nginx/conf.d/{{domain}}.conf"
|
||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
|
|
||||||
- name: "create {{path_docker_compose_files}}listmonk/"
|
- name: "create {{path_docker_compose_folder}}"
|
||||||
file:
|
file:
|
||||||
path: "{{path_docker_compose_files}}listmonk/"
|
path: "{{path_docker_compose_folder}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
template:
|
template:
|
||||||
src: "docker-compose.yml.j2"
|
src: "docker-compose.yml.j2"
|
||||||
dest: "{{path_docker_compose_files}}listmonk/docker-compose.yml"
|
dest: "{{path_docker_compose_folder}}docker-compose.yml"
|
||||||
|
notify: recreate listmonk
|
||||||
|
|
||||||
|
- name: add config.toml
|
||||||
|
template:
|
||||||
|
src: "config.toml.j2"
|
||||||
|
dest: "{{path_docker_compose_folder}}config.toml"
|
||||||
notify: recreate listmonk
|
notify: recreate listmonk
|
@ -3,7 +3,7 @@
|
|||||||
# of localhost will only listen to connections from the current machine. To
|
# of localhost will only listen to connections from the current machine. To
|
||||||
# listen on all interfaces use '0.0.0.0'. To listen on the default web address
|
# listen on all interfaces use '0.0.0.0'. To listen on the default web address
|
||||||
# port, use port 80 (this will require running with elevated permissions).
|
# port, use port 80 (this will require running with elevated permissions).
|
||||||
address = "localhost:9000"
|
address = "0.0.0.0:9000"
|
||||||
|
|
||||||
# BasicAuth authentication for the admin dashboard. This will eventually
|
# BasicAuth authentication for the admin dashboard. This will eventually
|
||||||
# be replaced with a better multi-user, role-based authentication system.
|
# be replaced with a better multi-user, role-based authentication system.
|
||||||
@ -14,10 +14,10 @@ admin_password = "listmonk"
|
|||||||
|
|
||||||
# Database.
|
# Database.
|
||||||
[db]
|
[db]
|
||||||
host = "localhost"
|
host = "listmonk_db"
|
||||||
port = 5432
|
port = 5432
|
||||||
user = "listmonk"
|
user = "listmonk"
|
||||||
password = "listmonk"
|
password = "{{listmonk_database_password}}"
|
||||||
|
|
||||||
# Ensure that this database has been created in Postgres.
|
# Ensure that this database has been created in Postgres.
|
||||||
database = "listmonk"
|
database = "listmonk"
|
@ -8,20 +8,20 @@ x-app-defaults: &app-defaults
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: listmonk/listmonk:latest
|
image: listmonk/listmonk:latest
|
||||||
ports:
|
ports:
|
||||||
- "9000:9000"
|
- "127.0.0.1:{{http_port}}:9000"
|
||||||
networks:
|
networks:
|
||||||
- listmonk
|
- listmonk
|
||||||
environment:
|
environment:
|
||||||
- TZ=Etc/UTC
|
- TZ=Etc/UTC
|
||||||
|
|
||||||
x-db-defaults: &db-defaults
|
x-db-defaults: &db-defaults
|
||||||
image: postgres:13
|
image: postgres:13-alpine
|
||||||
ports:
|
ports:
|
||||||
- "9432:5432"
|
- "9432:5432"
|
||||||
networks:
|
networks:
|
||||||
- listmonk
|
- listmonk
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=listmonk
|
- POSTGRES_PASSWORD={{listmonk_database_password}}
|
||||||
- POSTGRES_USER=listmonk
|
- POSTGRES_USER=listmonk
|
||||||
- POSTGRES_DB=listmonk
|
- POSTGRES_DB=listmonk
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -47,6 +47,7 @@ services:
|
|||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.toml:/listmonk/config.toml
|
- ./config.toml:/listmonk/config.toml
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
listmonk:
|
listmonk:
|
||||||
|
|
||||||
|
1
roles/docker-listmonk/vars/main.yml
Normal file
1
roles/docker-listmonk/vars/main.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
path_docker_compose_folder: "{{path_docker_compose_files}}listmonk/"
|
Loading…
Reference in New Issue
Block a user