mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-24 13:41:03 +01:00
Compare commits
3 Commits
cc30615532
...
36c659cfe2
Author | SHA1 | Date | |
---|---|---|---|
36c659cfe2 | |||
a679524a0c | |||
40dc94d648 |
@ -29,7 +29,7 @@ size_percent_cleanup_disc_space: 90
|
|||||||
path_administrator_home: "/home/administrator/"
|
path_administrator_home: "/home/administrator/"
|
||||||
path_administrator_scripts: "{{path_administrator_home}}scripts/"
|
path_administrator_scripts: "{{path_administrator_home}}scripts/"
|
||||||
path_docker_volumes: "{{path_administrator_home}}volumes/docker/"
|
path_docker_volumes: "{{path_administrator_home}}volumes/docker/"
|
||||||
path_docker_compose_files: "{{path_administrator_home}}docker-compose/"
|
path_docker_compose_instances: "{{path_administrator_home}}docker-compose/"
|
||||||
|
|
||||||
# Runtime Variables
|
# Runtime Variables
|
||||||
activate_all_timers (bool): false # Activates all timers, independend if the handlers had been triggered
|
activate_all_timers (bool): false # Activates all timers, independend if the handlers had been triggered
|
||||||
|
@ -19,7 +19,7 @@ Due to license issues, bugs and that in the past after an akaunting update your
|
|||||||
1. **Navigate to Docker Compose Directory**: Change to the directory containing your Docker Compose files for Akaunting.
|
1. **Navigate to Docker Compose Directory**: Change to the directory containing your Docker Compose files for Akaunting.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd {{path_docker_compose_files}}akaunting/
|
cd {{path_docker_compose_instances}}akaunting/
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Set Environment Variables**: These are necessary to prevent timeouts during long operations.
|
2. **Set Environment Variables**: These are necessary to prevent timeouts during long operations.
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}akaunting/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}akaunting/"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
---
|
---
|
||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}attendize/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}attendize/"
|
||||||
mail_interface_domain: "mail.{{domain}}"
|
mail_interface_domain: "mail.{{domain}}"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate baserow
|
- name: recreate baserow
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p baserow up -d --force-recreate
|
cmd: docker-compose -p baserow up -d --force-recreate
|
||||||
chdir: "{{path_docker_compose_files}}baserow/"
|
chdir: "{{path_docker_compose_instances}}baserow/"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}baserow/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}baserow/"
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}bigbluebutton/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}bigbluebutton/"
|
@ -1,2 +1,2 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}funkwhale/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}funkwhale/"
|
||||||
client_max_body_size: "512M"
|
nginx_docker_reverse_proxy_extra_configuration: "client_max_body_size 512M;"
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}gitea/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}gitea/"
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}joomla/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}joomla/"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate listmonk
|
- name: recreate listmonk
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p listmonk up -d --force-recreate
|
cmd: docker-compose -p listmonk up -d --force-recreate
|
||||||
chdir: "{{path_docker_compose_files}}listmonk/"
|
chdir: "{{path_docker_compose_instances}}listmonk/"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}listmonk/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}listmonk/"
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
vars:
|
vars:
|
||||||
client_max_body_size: "31M"
|
nginx_docker_reverse_proxy_extra_configuration: "client_max_body_size 31M;"
|
||||||
|
|
||||||
- name: "create {{path_docker_compose_files}}mailu"
|
- name: "create {{path_docker_compose_instances}}mailu"
|
||||||
file:
|
file:
|
||||||
path: "{{path_docker_compose_files}}mailu"
|
path: "{{path_docker_compose_instances}}mailu"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}mailu/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}mailu/"
|
@ -5,11 +5,11 @@
|
|||||||
```
|
```
|
||||||
## cleanup
|
## cleanup
|
||||||
```bash
|
```bash
|
||||||
cd {{path_docker_compose_files}}mastodon/
|
cd {{path_docker_compose_instances}}mastodon/
|
||||||
docker-compose down
|
docker-compose down
|
||||||
docker volume rm mastodon_data mastodon_database mastodon_redis
|
docker volume rm mastodon_data mastodon_database mastodon_redis
|
||||||
cd {{path_docker_compose_files}} &&
|
cd {{path_docker_compose_instances}} &&
|
||||||
rm -vR {{path_docker_compose_files}}mastodon
|
rm -vR {{path_docker_compose_instances}}mastodon
|
||||||
```
|
```
|
||||||
|
|
||||||
## access terminal
|
## access terminal
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}mastodon/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}mastodon/"
|
||||||
|
@ -12,7 +12,7 @@ This Ansible role deploys a Matomo analytics platform instance using Docker.
|
|||||||
|
|
||||||
- `domain`: The domain where Matomo will be accessible.
|
- `domain`: The domain where Matomo will be accessible.
|
||||||
- `administrator_email`: The email used for SSL certificate registration.
|
- `administrator_email`: The email used for SSL certificate registration.
|
||||||
- `path_docker_compose_files`: Path to store Docker Compose files.
|
- `path_docker_compose_instances`: Path to store Docker Compose files.
|
||||||
- `http_port`: The host port that Matomo will be accessible on.
|
- `http_port`: The host port that Matomo will be accessible on.
|
||||||
- `matomo_database_password`: Password for the Matomo database.
|
- `matomo_database_password`: Password for the Matomo database.
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
---
|
---
|
||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}matomo/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}matomo/"
|
@ -3,26 +3,61 @@
|
|||||||
## Dependencies
|
## Dependencies
|
||||||
- nginx-docker-reverse-proxy
|
- nginx-docker-reverse-proxy
|
||||||
|
|
||||||
## Variables
|
|
||||||
- `docker_compose_instance_directory`: The directory where Docker Compose files for MyBB are stored.
|
|
||||||
- `conf_d_docker_directory`: Directory for Docker Nginx configuration.
|
|
||||||
- `default_conf_server_file`: The default Nginx configuration file for the server.
|
|
||||||
- `conf_d_server_directory`: The Nginx server's configuration directory.
|
|
||||||
|
|
||||||
## Tasks
|
|
||||||
1. **Domain Certificate Retrieval:** Automates the process of obtaining SSL certificates for the specified domain using Certbot.
|
|
||||||
2. **Nginx Configuration:** Handles the configuration of Nginx for the MyBB domain.
|
|
||||||
3. **Directory Creation:** Ensures the creation of necessary directories including parent directories as required.
|
|
||||||
4. **MyBB and Nginx Configuration:** Manages the configuration for MyBB and Nginx, including setting up the `default.conf` file.
|
|
||||||
5. **Docker Compose Setup:** Adds and manages the `docker-compose.yml` file necessary for running MyBB with Docker.
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Install Plugins
|
### Multi Domain Installation
|
||||||
To install MyBB plugins, extract them to a mounted volume and sync using the provided `docker run` command
|
If you want to access your mybb over multiple domains, keep the following in mind:
|
||||||
```bash
|
- Set Cookie Domain to nothing
|
||||||
docker run --rm -v mybb-data:/target/ -v /mnt/:/origin/ "kevinveenbirkenbach/alpine-rsync" sh -c "rsync -avv /origin/inc/plugins/ /target/"
|
- Access mybb for installation via mybb.<top_domain>
|
||||||
```
|
- Set the Board Url to mybb.<top_domain>
|
||||||
|
|
||||||
|
### Manual Installation of MyBB Plugins
|
||||||
|
|
||||||
|
This guide describes the process of manually installing MyBB plugins in your Docker-MyBB environment. This can be useful if you want to quickly test plugins or do not wish to execute the Ansible role.
|
||||||
|
|
||||||
|
#### Steps for Manual Installation
|
||||||
|
|
||||||
|
|
||||||
|
1. **Prepare Plugin Files:**
|
||||||
|
- Download the desired MyBB plugin zip files.
|
||||||
|
|
||||||
|
2. **Copy plugin to host:**
|
||||||
|
- ```bash scp <plugin> administrator@<server>:/home/administrator/docker-compose/mybb/plugins```
|
||||||
|
|
||||||
|
3. **Unzip Plugin Files on the Host:**
|
||||||
|
- Unzip the plugin zip files in the host's plugin directory:
|
||||||
|
```bash
|
||||||
|
unzip /home/administrator/docker-compose/mybb/plugins/<plugin-file>.zip -d /home/administrator/docker-compose/mybb/plugins/
|
||||||
|
```
|
||||||
|
- Replace `<plugin-file>.zip` with the name of the plugin zip file.
|
||||||
|
- Repeat this step for each plugin.
|
||||||
|
|
||||||
|
4. **Access the Docker Container:**
|
||||||
|
- Open a terminal or SSH session on the server where the Docker container is running.
|
||||||
|
|
||||||
|
5. **Copy Unzipped Plugin Files to the Container:**
|
||||||
|
- Copy the unzipped plugin files from the host directory to the Docker container:
|
||||||
|
```bash
|
||||||
|
docker compose cp /home/administrator/docker-compose/mybb/plugins/<unzipped-plugin-folder> application:/var/www/html/inc/plugins/
|
||||||
|
```
|
||||||
|
- Replace `<unzipped-plugin-folder>` with the name of the unzipped plugin folder.
|
||||||
|
|
||||||
|
6. **Restart the Container:**
|
||||||
|
- Execute the following command to restart the MyBB container:
|
||||||
|
```bash
|
||||||
|
docker-compose -p mybb up -d --force-recreate
|
||||||
|
```
|
||||||
|
- This ensures all changes take effect.
|
||||||
|
|
||||||
|
7. **Activate Plugins in the MyBB Admin Panel:**
|
||||||
|
- Open the MyBB admin panel in your web browser.
|
||||||
|
- Navigate to the plugin settings and activate the newly installed plugins.
|
||||||
|
|
||||||
|
#### Important Notes
|
||||||
|
|
||||||
|
- Ensure you use the correct paths and filenames.
|
||||||
|
- Do not forget to regularly back up your MyBB database and files before making changes.
|
||||||
|
- If encountering issues, refer to the MyBB documentation or specific instructions from the plugin author.
|
||||||
|
|
||||||
### Running the Role
|
### Running the Role
|
||||||
Execute the Ansible playbook containing this role to set up MyBB in a Docker environment.
|
Execute the Ansible playbook containing this role to set up MyBB in a Docker environment.
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
---
|
---
|
||||||
- name: "include tasks nginx-docker-proxy-domain.yml"
|
- name: "include tasks mybb-proxy-domain.yml"
|
||||||
include_tasks: nginx-docker-proxy-domain.yml
|
include_tasks: mybb-proxy-domain.yml
|
||||||
loop: "{{ domains }}"
|
loop: "{{ domains + [mybb_main_domain] }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: domain
|
loop_var: domain
|
||||||
|
|
||||||
- name: "create {{conf_d_server_directory}} and parent directories"
|
- name: "create {{docker_compose_instance_confd_directory}} and parent directories"
|
||||||
file:
|
file:
|
||||||
path: "{{conf_d_server_directory}}"
|
path: "{{docker_compose_instance_confd_directory}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
recurse: yes
|
recurse: yes
|
||||||
|
|
||||||
- name: "create {{default_conf_server_file}}"
|
- name: "create {{docker_compose_instance_confd_defaultconf_file}}"
|
||||||
template:
|
template:
|
||||||
src: "default.conf"
|
src: "default.conf"
|
||||||
dest: "{{default_conf_server_file}}"
|
dest: "{{docker_compose_instance_confd_defaultconf_file}}"
|
||||||
notify: recreate mybb
|
notify: recreate mybb
|
||||||
|
|
||||||
- name: add docker-compose.yml
|
- name: add docker-compose.yml
|
||||||
|
7
roles/docker-mybb/tasks/mybb-proxy-domain.yml
Normal file
7
roles/docker-mybb/tasks/mybb-proxy-domain.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
- name: "include task certbot-matomo.yml"
|
||||||
|
include_tasks: certbot-matomo.yml
|
||||||
|
|
||||||
|
- name: "include task create-domain-conf.yml"
|
||||||
|
include_tasks: create-domain-conf.yml
|
||||||
|
vars:
|
||||||
|
nginx_docker_reverse_proxy_extra_configuration: "sub_filter '{{mybb_main_domain}}' '{{domain}}';"
|
@ -7,7 +7,6 @@ server {
|
|||||||
error_log stderr debug;
|
error_log stderr debug;
|
||||||
root /var/www/html;
|
root /var/www/html;
|
||||||
index index.html index.php;
|
index index.html index.php;
|
||||||
worker_processes auto;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
@ -30,13 +29,6 @@ server {
|
|||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
|
|
||||||
# client timeout
|
|
||||||
keepalive_timeout 60s;
|
|
||||||
client_header_timeout 60s;
|
|
||||||
client_body_timeout 60s;
|
|
||||||
send_timeout 300s;
|
|
||||||
reset_timedout_connection on;
|
|
||||||
|
|
||||||
# proxy timeouts
|
# proxy timeouts
|
||||||
proxy_connect_timeout 300s;
|
proxy_connect_timeout 300s;
|
||||||
proxy_send_timeout 300s;
|
proxy_send_timeout 300s;
|
||||||
|
@ -23,7 +23,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:{{http_port}}:80"
|
- "127.0.0.1:{{http_port}}:80"
|
||||||
volumes:
|
volumes:
|
||||||
- "{{conf_d_server_directory}}:{{conf_d_docker_directory}}:ro"
|
- "{{docker_compose_instance_confd_directory}}:{{target_mount_conf_d_directory}}:ro"
|
||||||
- "data:/var/www/html:ro"
|
- "data:/var/www/html:ro"
|
||||||
database:
|
database:
|
||||||
logging:
|
logging:
|
||||||
@ -36,7 +36,7 @@ services:
|
|||||||
POSTGRES_USER: mybb
|
POSTGRES_USER: mybb
|
||||||
image: postgres:14-alpine
|
image: postgres:14-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- ${PWD}/postgres/data:/var/lib/postgresql/data:rw
|
- database:/var/lib/postgresql/data:rw
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
database:
|
database:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}mybb/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}mybb/"
|
||||||
conf_d_server_directory: "{{docker_compose_instance_directory}}conf.d/"
|
docker_compose_instance_confd_directory: "{{docker_compose_instance_directory}}conf.d/"
|
||||||
default_conf_server_file: "{{conf_d_docker_directory}}default.conf"
|
docker_compose_instance_confd_defaultconf_file: "{{docker_compose_instance_confd_directory}}default.conf"
|
||||||
conf_d_docker_directory: "/etc/nginx/conf.d/"
|
target_mount_conf_d_directory: "/etc/nginx/conf.d/"
|
||||||
|
mybb_main_domain: "mybb.{{top_domain}}"
|
||||||
|
@ -57,7 +57,7 @@ and disable the not functioning apps.
|
|||||||
|
|
||||||
## recover latest backup
|
## recover latest backup
|
||||||
```bash
|
```bash
|
||||||
cd {{path_docker_compose_files}}nextcloud &&
|
cd {{path_docker_compose_instances}}nextcloud &&
|
||||||
docker-compose down &&
|
docker-compose down &&
|
||||||
docker-compose exec -i database mysql -u nextcloud -pPASSWORT nextcloud < "/Backups/$(sha256sum /etc/machine-id | head -c 64)/backup-docker-to-local/latest/nextcloud_database/sql/backup.sql" &&
|
docker-compose exec -i database mysql -u nextcloud -pPASSWORT nextcloud < "/Backups/$(sha256sum /etc/machine-id | head -c 64)/backup-docker-to-local/latest/nextcloud_database/sql/backup.sql" &&
|
||||||
cd {{path_administrator_scripts}}backup-docker-to-local &&
|
cd {{path_administrator_scripts}}backup-docker-to-local &&
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
---
|
---
|
||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}nextcloud/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}nextcloud/"
|
@ -7,7 +7,7 @@ watch -n 2 "docker ps -a | grep peertube"
|
|||||||
|
|
||||||
## clean rebuild
|
## clean rebuild
|
||||||
```bash
|
```bash
|
||||||
cd {{path_docker_compose_files}}peertube/ &&
|
cd {{path_docker_compose_instances}}peertube/ &&
|
||||||
docker-compose down
|
docker-compose down
|
||||||
docker volume rm peertube_assets peertube_config peertube_data peertube_database peertube_redis
|
docker volume rm peertube_assets peertube_config peertube_data peertube_database peertube_redis
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}peertube/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}peertube/"
|
||||||
|
@ -49,7 +49,7 @@ docker volume rm pixelfed_application_data pixelfed_database pixelfed_redis_data
|
|||||||
|
|
||||||
To update your Pixelfed instance, navigate to the directory where your `docker-compose.yml` file is located and run these commands:
|
To update your Pixelfed instance, navigate to the directory where your `docker-compose.yml` file is located and run these commands:
|
||||||
```bash
|
```bash
|
||||||
cd {{path_docker_compose_files}}pixelfed/ &&
|
cd {{path_docker_compose_instances}}pixelfed/ &&
|
||||||
docker-compose down &&
|
docker-compose down &&
|
||||||
docker network prune -f &&
|
docker network prune -f &&
|
||||||
docker-compose pull &&
|
docker-compose pull &&
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: recreate pixelfed
|
- name: recreate pixelfed
|
||||||
command:
|
command:
|
||||||
cmd: docker-compose -p pixelfed up -d --force-recreate
|
cmd: docker-compose -p pixelfed up -d --force-recreate
|
||||||
chdir: "{{path_docker_compose_files}}pixelfed/"
|
chdir: "{{path_docker_compose_instances}}pixelfed/"
|
||||||
environment:
|
environment:
|
||||||
COMPOSE_HTTP_TIMEOUT: 600
|
COMPOSE_HTTP_TIMEOUT: 600
|
||||||
DOCKER_CLIENT_TIMEOUT: 600
|
DOCKER_CLIENT_TIMEOUT: 600
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}pixelfed/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}pixelfed/"
|
||||||
client_max_body_size: "512M"
|
nginx_docker_reverse_proxy_extra_configuration: "client_max_body_size 512M;"
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}roulette-wheel/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}roulette-wheel/"
|
||||||
app_path: "{{path_docker_compose_files}}roulette-wheel/app/"
|
app_path: "{{path_docker_compose_instances}}roulette-wheel/app/"
|
@ -6,7 +6,7 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
loop_var: domain
|
loop_var: domain
|
||||||
vars:
|
vars:
|
||||||
client_max_body_size: "{{wordpress_max_upload_size}}"
|
nginx_docker_reverse_proxy_extra_configuration: "client_max_body_size {{wordpress_max_upload_size}};"
|
||||||
|
|
||||||
- name: "create {{docker_compose_instance_directory}}"
|
- name: "create {{docker_compose_instance_directory}}"
|
||||||
file:
|
file:
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}wordpress/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}wordpress/"
|
||||||
wordpress_max_upload_size: "64M"
|
wordpress_max_upload_size: "64M"
|
||||||
|
@ -1 +1 @@
|
|||||||
docker_compose_instance_directory: "{{path_docker_compose_files}}yourls/"
|
docker_compose_instance_directory: "{{path_docker_compose_instances}}yourls/"
|
@ -6,9 +6,9 @@
|
|||||||
state: present
|
state: present
|
||||||
notify: docker restart
|
notify: docker restart
|
||||||
|
|
||||||
- name: "create {{path_docker_compose_files}}"
|
- name: "create {{path_docker_compose_instances}}"
|
||||||
file:
|
file:
|
||||||
path: "{{path_docker_compose_files}}"
|
path: "{{path_docker_compose_instances}}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0700
|
mode: 0700
|
||||||
owner: administrator
|
owner: administrator
|
||||||
|
@ -2,13 +2,14 @@ server
|
|||||||
{
|
{
|
||||||
server_name {{domain}};
|
server_name {{domain}};
|
||||||
|
|
||||||
|
# Include Matomo Tracking Code
|
||||||
{% if nginx_matomo_tracking_active | default(False) %}
|
{% if nginx_matomo_tracking_active | default(False) %}
|
||||||
{% include 'roles/nginx-matomo-tracking/templates/matomo-tracking.conf.j2' %}
|
{% include 'roles/nginx-matomo-tracking/templates/matomo-tracking.conf.j2' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
# Additional Domain Specific Configuration
|
||||||
{% if client_max_body_size is defined %}
|
{% if nginx_docker_reverse_proxy_extra_configuration is defined %}
|
||||||
client_max_body_size {{ client_max_body_size }};
|
{{nginx_docker_reverse_proxy_extra_configuration}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
|
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
|
||||||
|
@ -4,4 +4,4 @@ OnFailure=systemd-notifier@%n.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/bin/sh -c '/usr/bin/python {{update_docker_script}} {{path_docker_compose_files}}'
|
ExecStart=/bin/sh -c '/usr/bin/python {{update_docker_script}} {{path_docker_compose_instances}}'
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: "Check if {{ path_docker_compose_files }} directory exists"
|
- name: "Check if {{ path_docker_compose_instances }} directory exists"
|
||||||
stat:
|
stat:
|
||||||
path: "{{ path_docker_compose_files }}"
|
path: "{{ path_docker_compose_instances }}"
|
||||||
register: docker_compose_directory_stat
|
register: docker_compose_directory_stat
|
||||||
|
|
||||||
- name: "Update with pacman"
|
- name: "Update with pacman"
|
||||||
|
Loading…
Reference in New Issue
Block a user