Renamed server roles

This commit is contained in:
2023-04-18 15:41:14 +02:00
parent 9b065dfc5d
commit cd9eca8ee3
136 changed files with 348 additions and 348 deletions

View File

@@ -1,4 +1,4 @@
# role docker-mailu
# role server_docker-mailu
## setup
### bugs
@@ -43,7 +43,7 @@ to verify that there aren't port conflicts
Before you can use Mailu, you must create the primary administrator user account. This should be admin@{{hostname}}. Use the following command, changing PASSWORD to your liking:
```bash
docker-compose -p mailu exec admin flask mailu admin {{admin}} {{hostname}} PASSWORD
server_docker-compose -p mailu exec admin flask mailu admin {{admin}} {{hostname}} PASSWORD
```
### cli user management
@@ -52,7 +52,7 @@ How to manage users is described here: https://mailu.io/master/cli.html
### Up
```bash
docker-compose -p mailu up -d
server_docker-compose -p mailu up -d
```
## debug

View File

@@ -1,8 +1,8 @@
---
- name: recreate mailu
command:
cmd: docker-compose -p mailu up -d --force-recreate
chdir: /home/administrator/docker-compose/mailu/
cmd: server_docker-compose -p mailu up -d --force-recreate
chdir: /home/administrator/server_docker-compose/mailu/
environment:
COMPOSE_HTTP_TIMEOUT: 900
DOCKER_CLIENT_TIMEOUT: 900

View File

@@ -1,3 +1,3 @@
dependencies:
- native-docker-reverse-proxy
- native-systemd-email
- server_native-docker-reverse-proxy
- server_native-systemd-email

View File

@@ -6,12 +6,12 @@
- name: configure {{domain}}.conf
vars:
client_max_body_size: "31M"
template: src=roles/native-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
template: src=roles/server_native-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
notify: restart nginx
- name: "create /home/administrator/docker-compose/mailu"
- name: "create /home/administrator/server_docker-compose/mailu"
file:
path: "/home/administrator/docker-compose/mailu"
path: "/home/administrator/server_docker-compose/mailu"
state: directory
mode: 0755
@@ -33,12 +33,12 @@
state: directory
mode: 0755
- name: add docker-compose.yml
template: src=docker-compose.yml.j2 dest=/home/administrator/docker-compose/mailu/docker-compose.yml
- name: add server_docker-compose.yml
template: src=server_docker-compose.yml.j2 dest=/home/administrator/server_docker-compose/mailu/server_docker-compose.yml
notify: recreate mailu
- name: add mailu.env
template: src=mailu.env.j2 dest=/home/administrator/docker-compose/mailu/mailu.env
template: src=mailu.env.j2 dest=/home/administrator/server_docker-compose/mailu/mailu.env
notify: recreate mailu
- name: add deploy-letsencrypt-mailu.sh

View File

@@ -114,10 +114,10 @@ WEBSITE=https://{{domain}}
# Log driver for front service. Possible values:
# json-file (default)
# journald (On systemd platforms, useful for Fail2Ban integration)
# syslog (Non systemd platforms, Fail2Ban integration. Disables `docker-compose log` for front!)
# syslog (Non systemd platforms, Fail2Ban integration. Disables `server_docker-compose log` for front!)
# LOG_DRIVER=json-file
# Docker-compose project name, this will prepended to containers names.
# server_docker-compose project name, this will prepended to containers names.
COMPOSE_PROJECT_NAME=mailu
# Default password scheme used for newly created accounts and changed passwords