mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-23 02:45:02 +01:00
solved docker-compose naming bugs
This commit is contained in:
parent
0aacd81f6e
commit
7cb11a2d37
@ -2,7 +2,7 @@
|
||||
community.general.pacman:
|
||||
name:
|
||||
- docker
|
||||
- server_docker-compose
|
||||
- docker-compose
|
||||
state: present
|
||||
|
||||
- name: Adding user {{client_username}} to relevant arduino usergroups
|
||||
|
@ -2,17 +2,17 @@
|
||||
|
||||
## new setup
|
||||
```bash
|
||||
cd /home/administrator/server_docker-compose/akaunting/
|
||||
cd /home/administrator/docker-compose/akaunting/
|
||||
export COMPOSE_HTTP_TIMEOUT=600
|
||||
export DOCKER_CLIENT_TIMEOUT=600
|
||||
AKAUNTING_SETUP=true server_docker-compose -p akaunting up -d
|
||||
AKAUNTING_SETUP=true docker-compose -p akaunting up -d
|
||||
```
|
||||
|
||||
Check Webinterface and then execute:
|
||||
|
||||
```bash
|
||||
server_docker-compose down
|
||||
server_docker-compose -p akaunting up -d
|
||||
docker-compose down
|
||||
docker-compose -p akaunting up -d
|
||||
```
|
||||
|
||||
## administration
|
||||
@ -68,17 +68,17 @@ export COMPOSE_HTTP_TIMEOUT=600
|
||||
export DOCKER_CLIENT_TIMEOUT=600
|
||||
|
||||
# destroy all containers
|
||||
cd /home/administrator/server_docker-compose/akaunting/ &&
|
||||
server_docker-compose down &&
|
||||
cd /home/administrator/docker-compose/akaunting/ &&
|
||||
docker-compose down &&
|
||||
docker network prune -f
|
||||
|
||||
# delete all volumes
|
||||
docker volume rm akaunting_akaunting-data akaunting_akaunting-db akaunting_akaunting-modules
|
||||
|
||||
# rebuild containers
|
||||
server_docker-compose pull &&
|
||||
server_docker-compose build &&
|
||||
server_docker-compose -p akaunting up -d --force-recreate
|
||||
docker-compose pull &&
|
||||
docker-compose build &&
|
||||
docker-compose -p akaunting up -d --force-recreate
|
||||
|
||||
# recover all volumes
|
||||
cd /home/administrator/scripts/docker-volume-backup &&
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: setup akaunting
|
||||
command:
|
||||
cmd: server_docker-compose -p akaunting up -d --force-recreate
|
||||
cmd: docker-compose -p akaunting up -d --force-recreate
|
||||
chdir: "{{docker_compose_akaunting_path}}"
|
||||
environment:
|
||||
#AKAUNTING_SETUP: true
|
||||
|
@ -1 +1 @@
|
||||
docker_compose_akaunting_path: "/home/administrator/server_docker-compose/akaunting/"
|
||||
docker_compose_akaunting_path: "/home/administrator/docker-compose/akaunting/"
|
||||
|
@ -5,7 +5,7 @@ Role to deploy [BigBlueButton](https://bigbluebutton.org/).
|
||||
|
||||
### cleanup
|
||||
```bash
|
||||
server_docker-compose down;
|
||||
docker-compose down;
|
||||
docker volume rm bigbluebutton_bigbluebutton bigbluebutton_html5-static bigbluebutton_vol-freeswitch bigbluebutton_vol-kurento bigbluebutton_vol-mediasoup bigbluebutton_database
|
||||
```
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: create server_docker-compose.yml for bigbluebutton
|
||||
- name: create docker-compose.yml for bigbluebutton
|
||||
command:
|
||||
cmd: bash ./scripts/generate-compose
|
||||
chdir: "{{docker_compose_bigbluebutton_path}}"
|
||||
@ -9,7 +9,7 @@
|
||||
listen: setup bigbluebutton
|
||||
- name: docker compose up bigbluebutton
|
||||
command:
|
||||
cmd: server_docker-compose -p bigbluebutton up -d --force-recreate
|
||||
cmd: docker-compose -p bigbluebutton up -d --force-recreate
|
||||
chdir: "{{docker_compose_bigbluebutton_path}}"
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
|
@ -1 +1 @@
|
||||
docker_compose_bigbluebutton_path: "/home/administrator/server_docker-compose/bigbluebutton/"
|
||||
docker_compose_bigbluebutton_path: "/home/administrator/docker-compose/bigbluebutton/"
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: recreate server_docker-elk
|
||||
command:
|
||||
cmd: server_docker-compose up -d --force-recreate
|
||||
cmd: docker-compose up -d --force-recreate
|
||||
chdir: "{{docker_elk_compose_path}}"
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
|
@ -31,8 +31,8 @@
|
||||
update: yes
|
||||
notify: recreate server_docker-elk
|
||||
|
||||
- name: copy server_docker-compose.yml
|
||||
template: src=server_docker-compose.yml.j2 dest={{docker_elk_compose_path}}server_docker-compose.yml
|
||||
- name: copy docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest={{docker_elk_compose_path}}docker-compose.yml
|
||||
notify: recreate server_docker-elk
|
||||
|
||||
- name: copy elasticsearch.yml
|
||||
|
@ -5,7 +5,7 @@ This role doesn't work and needs to be implemented
|
||||
## cleanup
|
||||
|
||||
```bash
|
||||
server_docker-compose down && docker volume rm funkwhale_data
|
||||
docker-compose down && docker volume rm funkwhale_data
|
||||
```
|
||||
|
||||
## further information
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
- name: recreate funkwhale
|
||||
command:
|
||||
cmd: server_docker-compose -p funkwhale up -d --force-recreate
|
||||
chdir: /home/administrator/server_docker-compose/funkwhale/
|
||||
cmd: docker-compose -p funkwhale up -d --force-recreate
|
||||
chdir: /home/administrator/docker-compose/funkwhale/
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
DOCKER_CLIENT_TIMEOUT: 600
|
||||
|
@ -12,8 +12,8 @@
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: add server_docker-compose.yml
|
||||
template: src=server_docker-compose.yml.j2 dest={{docker_compose_path}}server_docker-compose.yml
|
||||
- name: add docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest={{docker_compose_path}}docker-compose.yml
|
||||
notify: recreate funkwhale
|
||||
|
||||
- name: add .env
|
||||
|
@ -1,2 +1,2 @@
|
||||
docker_compose_path: "/home/administrator/server_docker-compose/funkwhale/"
|
||||
docker_compose_path: "/home/administrator/docker-compose/funkwhale/"
|
||||
client_max_body_size: "512M"
|
||||
|
@ -2,10 +2,10 @@
|
||||
|
||||
## update
|
||||
```bash
|
||||
cd /home/administrator/server_docker-compose/gitea/
|
||||
server_docker-compose down
|
||||
server_docker-compose pull
|
||||
server_docker-compose up -d
|
||||
cd /home/administrator/docker-compose/gitea/
|
||||
docker-compose down
|
||||
docker-compose pull
|
||||
docker-compose up -d
|
||||
```
|
||||
Keep in mind to track and to don't interrupt the update process until the migration is done.
|
||||
|
||||
@ -19,7 +19,7 @@ Keep in mind to track and to don't interrupt the update process until the migrat
|
||||
|
||||
## recreate
|
||||
```bash
|
||||
cd /home/administrator/server_docker-compose/gitea/ && server_docker-compose -p gitea up -d --force-recreate
|
||||
cd /home/administrator/docker-compose/gitea/ && docker-compose -p gitea up -d --force-recreate
|
||||
```
|
||||
|
||||
## database access
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
- name: recreate gitea
|
||||
command:
|
||||
cmd: server_docker-compose -p gitea up -d --force-recreate
|
||||
chdir: /home/administrator/server_docker-compose/gitea/
|
||||
cmd: docker-compose -p gitea up -d --force-recreate
|
||||
chdir: /home/administrator/docker-compose/gitea/
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
DOCKER_CLIENT_TIMEOUT: 600
|
||||
|
@ -6,12 +6,12 @@
|
||||
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/server_docker-compose/gitea/"
|
||||
- name: "create /home/administrator/docker-compose/gitea/"
|
||||
file:
|
||||
path: "/home/administrator/server_docker-compose/gitea/"
|
||||
path: "/home/administrator/docker-compose/gitea/"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: add server_docker-compose.yml
|
||||
template: src=server_docker-compose.yml.j2 dest=/home/administrator/server_docker-compose/gitea/server_docker-compose.yml
|
||||
- name: add docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest=/home/administrator/docker-compose/gitea/docker-compose.yml
|
||||
notify: recreate gitea
|
||||
|
@ -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
|
||||
server_docker-compose -p mailu exec admin flask mailu admin {{admin}} {{hostname}} PASSWORD
|
||||
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
|
||||
server_docker-compose -p mailu up -d
|
||||
docker-compose -p mailu up -d
|
||||
```
|
||||
## debug
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
- name: recreate mailu
|
||||
command:
|
||||
cmd: server_docker-compose -p mailu up -d --force-recreate
|
||||
chdir: /home/administrator/server_docker-compose/mailu/
|
||||
cmd: docker-compose -p mailu up -d --force-recreate
|
||||
chdir: /home/administrator/docker-compose/mailu/
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 900
|
||||
DOCKER_CLIENT_TIMEOUT: 900
|
||||
|
@ -9,9 +9,9 @@
|
||||
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/server_docker-compose/mailu"
|
||||
- name: "create /home/administrator/docker-compose/mailu"
|
||||
file:
|
||||
path: "/home/administrator/server_docker-compose/mailu"
|
||||
path: "/home/administrator/docker-compose/mailu"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
@ -33,12 +33,12 @@
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: add server_docker-compose.yml
|
||||
template: src=server_docker-compose.yml.j2 dest=/home/administrator/server_docker-compose/mailu/server_docker-compose.yml
|
||||
- name: add docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest=/home/administrator/docker-compose/mailu/docker-compose.yml
|
||||
notify: recreate mailu
|
||||
|
||||
- name: add mailu.env
|
||||
template: src=mailu.env.j2 dest=/home/administrator/server_docker-compose/mailu/mailu.env
|
||||
template: src=mailu.env.j2 dest=/home/administrator/docker-compose/mailu/mailu.env
|
||||
notify: recreate mailu
|
||||
|
||||
- name: add deploy-letsencrypt-mailu.sh
|
||||
|
@ -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 `server_docker-compose log` for front!)
|
||||
# syslog (Non systemd platforms, Fail2Ban integration. Disables `docker-compose log` for front!)
|
||||
# LOG_DRIVER=json-file
|
||||
|
||||
# server_docker-compose project name, this will prepended to containers names.
|
||||
# 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
|
||||
|
@ -1,15 +1,15 @@
|
||||
# docker mastodon
|
||||
## create configuration
|
||||
```bash
|
||||
server_docker-compose run --rm web bundle exec rake mastodon:setup
|
||||
docker-compose run --rm web bundle exec rake mastodon:setup
|
||||
```
|
||||
## cleanup
|
||||
```bash
|
||||
cd /home/administrator/server_docker-compose/mastodon/
|
||||
server_docker-compose down
|
||||
cd /home/administrator/docker-compose/mastodon/
|
||||
docker-compose down
|
||||
docker volume rm mastodon_data mastodon_database mastodon_redis
|
||||
cd /home/administrator/server_docker-compose/ &&
|
||||
rm -vR /home/administrator/server_docker-compose/mastodon
|
||||
cd /home/administrator/docker-compose/ &&
|
||||
rm -vR /home/administrator/docker-compose/mastodon
|
||||
```
|
||||
|
||||
## access terminal
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: recreate mastodon
|
||||
command:
|
||||
cmd: server_docker-compose -p mastodon up -d --force-recreate
|
||||
cmd: docker-compose -p mastodon up -d --force-recreate
|
||||
chdir: "{{docker_compose_mastodon_path}}"
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
|
@ -12,8 +12,8 @@
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: copy server_docker-compose.yml
|
||||
template: src=server_docker-compose.yml.j2 dest={{docker_compose_mastodon_path}}server_docker-compose.yml
|
||||
- name: copy docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest={{docker_compose_mastodon_path}}docker-compose.yml
|
||||
notify: recreate mastodon
|
||||
|
||||
- name: copy configuration
|
||||
|
@ -1 +1 @@
|
||||
docker_compose_mastodon_path: "/home/administrator/server_docker-compose/mastodon/"
|
||||
docker_compose_mastodon_path: "/home/administrator/docker-compose/mastodon/"
|
||||
|
@ -16,7 +16,7 @@ To update the nextcloud container execute the following commands on the server:
|
||||
sudo python /home/administrator/scripts/docker-volume-backup/docker-volume-backup.py
|
||||
export COMPOSE_HTTP_TIMEOUT=600
|
||||
export DOCKER_CLIENT_TIMEOUT=600
|
||||
cd /home/administrator/server_docker-compose/nextcloud && server_docker-compose down
|
||||
cd /home/administrator/docker-compose/nextcloud && docker-compose down
|
||||
```
|
||||
|
||||
Afterwards update the ***nextcloud_version*** variable to the next version and run the this repository with this ansible role.
|
||||
@ -55,8 +55,8 @@ and disable the not functioning apps.
|
||||
|
||||
## recover latest backup
|
||||
```bash
|
||||
cd /home/administrator/server_docker-compose/nextcloud &&
|
||||
server_docker-compose down &&
|
||||
cd /home/administrator/docker-compose/nextcloud &&
|
||||
docker-compose down &&
|
||||
docker exec -i nextcloud_database_1 mysql -u nextcloud -pPASSWORT nextcloud < "/Backups/$(sha256sum /etc/machine-id | head -c 64)/docker-volume-backup/latest/nextcloud_database/sql/backup.sql" &&
|
||||
cd /home/administrator/scripts/docker-volume-backup &&
|
||||
bash ./server_docker-volume-recover.sh "nextcloud_data" "$(sha256sum /etc/machine-id | head -c 64)"
|
||||
@ -124,7 +124,7 @@ Until NC24 MariaDB version has to be used.
|
||||
- https://help.nextcloud.com/t/solved-manual-lemp-install-php-fpm-timing-out/39070
|
||||
|
||||
## further information
|
||||
- https://github.com/nextcloud/docker/blob/master/.examples/server_docker-compose/with-nginx-proxy/mariadb/fpm/server_docker-compose.yml
|
||||
- https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/with-nginx-proxy/mariadb/fpm/docker-compose.yml
|
||||
- https://goneuland.de/nextcloud-upgrade-auf-neue-versionen-mittels-docker/
|
||||
- https://help.nextcloud.com/t/cant-start-nextcloud-because-the-version-of-the-data-is-higher-than-the-server_docker-image-version-and-downgrading-is-not-supported/109438
|
||||
- https://github.com/nextcloud/docker/issues/1302
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
- name: recreate nextcloud
|
||||
command:
|
||||
cmd: server_docker-compose -p nextcloud up -d --force-recreate
|
||||
chdir: /home/administrator/server_docker-compose/nextcloud/
|
||||
cmd: docker-compose -p nextcloud up -d --force-recreate
|
||||
chdir: /home/administrator/docker-compose/nextcloud/
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
DOCKER_CLIENT_TIMEOUT: 600
|
||||
|
@ -16,12 +16,12 @@
|
||||
template: src=templates/nginx.conf.j2 dest=/home/administrator/volumes/docker/nextcloud/nginx.conf
|
||||
notify: recreate nextcloud
|
||||
|
||||
- name: "create /home/administrator/server_docker-compose/nextcloud/"
|
||||
- name: "create /home/administrator/docker-compose/nextcloud/"
|
||||
file:
|
||||
path: "/home/administrator/server_docker-compose/nextcloud/"
|
||||
path: "/home/administrator/docker-compose/nextcloud/"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: add server_docker-compose.yml
|
||||
template: src=server_docker-compose.yml.j2 dest=/home/administrator/server_docker-compose/nextcloud/server_docker-compose.yml
|
||||
- name: add docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest=/home/administrator/docker-compose/nextcloud/docker-compose.yml
|
||||
notify: recreate nextcloud
|
||||
|
@ -7,10 +7,10 @@ watch -n 2 "docker ps -a | grep peertube"
|
||||
|
||||
## clean rebuild
|
||||
```bash
|
||||
cd /home/administrator/server_docker-compose/peertube/ &&
|
||||
server_docker-compose down
|
||||
cd /home/administrator/docker-compose/peertube/ &&
|
||||
docker-compose down
|
||||
docker volume rm peertube_assets peertube_config peertube_data peertube_database peertube_redis
|
||||
server_docker-compose up -d
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
## access terminal
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: recreate peertube
|
||||
command:
|
||||
cmd: server_docker-compose -p peertube up -d --force-recreate
|
||||
cmd: docker-compose -p peertube up -d --force-recreate
|
||||
chdir: "{{docker_compose_peertube_path}}"
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
|
@ -12,8 +12,8 @@
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: copy server_docker-compose.yml
|
||||
template: src=server_docker-compose.yml.j2 dest={{docker_compose_peertube_path}}server_docker-compose.yml
|
||||
- name: copy docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest={{docker_compose_peertube_path}}docker-compose.yml
|
||||
notify: recreate peertube
|
||||
|
||||
- name: copy configuration
|
||||
|
@ -1 +1 @@
|
||||
docker_compose_peertube_path: "/home/administrator/server_docker-compose/peertube/"
|
||||
docker_compose_peertube_path: "/home/administrator/docker-compose/peertube/"
|
||||
|
@ -2,25 +2,25 @@
|
||||
|
||||
## hard cleanup
|
||||
```bash
|
||||
server_docker-compose down
|
||||
docker-compose down
|
||||
docker volume rm pixelfed_application_data pixelfed_database pixelfed_redis_data
|
||||
```
|
||||
|
||||
## update
|
||||
```bash
|
||||
cd /home/administrator/server_docker-compose/pixelfed/ &&
|
||||
server_docker-compose down &&
|
||||
cd /home/administrator/docker-compose/pixelfed/ &&
|
||||
docker-compose down &&
|
||||
docker network prune -f &&
|
||||
server_docker-compose pull &&
|
||||
server_docker-compose build &&
|
||||
server_docker-compose -p pixelfed up -d --force-recreate
|
||||
docker-compose pull &&
|
||||
docker-compose build &&
|
||||
docker-compose -p pixelfed up -d --force-recreate
|
||||
```
|
||||
|
||||
## inspect
|
||||
|
||||
```bash
|
||||
server_docker-compose ps -a
|
||||
server_docker-compose logs -f
|
||||
docker-compose ps -a
|
||||
docker-compose logs -f
|
||||
```
|
||||
|
||||
## further information
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
- name: recreate pixelfed
|
||||
command:
|
||||
cmd: server_docker-compose -p pixelfed up -d --force-recreate
|
||||
chdir: /home/administrator/server_docker-compose/pixelfed/
|
||||
cmd: docker-compose -p pixelfed up -d --force-recreate
|
||||
chdir: /home/administrator/docker-compose/pixelfed/
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
DOCKER_CLIENT_TIMEOUT: 600
|
||||
|
@ -12,8 +12,8 @@
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: add server_docker-compose.yml
|
||||
template: src=server_docker-compose.yml.j2 dest={{docker_compose_path}}server_docker-compose.yml
|
||||
- name: add docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest={{docker_compose_path}}docker-compose.yml
|
||||
notify: recreate pixelfed
|
||||
|
||||
- name: add env
|
||||
|
@ -1,2 +1,2 @@
|
||||
docker_compose_path: "/home/administrator/server_docker-compose/pixelfed/"
|
||||
docker_compose_path: "/home/administrator/docker-compose/pixelfed/"
|
||||
client_max_body_size: "512M"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: recreate and build roulette-wheel
|
||||
command:
|
||||
cmd: server_docker-compose -p roulette-wheel up -d --force-recreate --build
|
||||
cmd: docker-compose -p roulette-wheel up -d --force-recreate --build
|
||||
chdir: "{{docker_compose_path}}"
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
|
@ -20,8 +20,8 @@
|
||||
notify: recreate and build roulette-wheel
|
||||
become: true
|
||||
|
||||
- name: add server_docker-compose.yml
|
||||
template: src=server_docker-compose.yml.j2 dest={{docker_compose_path}}server_docker-compose.yml
|
||||
- name: add docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest={{docker_compose_path}}docker-compose.yml
|
||||
notify: recreate and build roulette-wheel
|
||||
|
||||
- name: add Dockerfile
|
||||
|
@ -1,2 +1,2 @@
|
||||
docker_compose_path: "/home/administrator/server_docker-compose/roulette-wheel/"
|
||||
app_path: "/home/administrator/server_docker-compose/roulette-wheel/app/"
|
||||
docker_compose_path: "/home/administrator/docker-compose/roulette-wheel/"
|
||||
app_path: "/home/administrator/docker-compose/roulette-wheel/app/"
|
@ -6,5 +6,5 @@ May this service needs to be implemented for jitis. It's directly integrated in
|
||||
- https://nextcloud-talk.readthedocs.io/en/latest/TURN/
|
||||
- https://hub.docker.com/r/instrumentisto/coturn
|
||||
- https://forum.openmediavault.org/index.php?thread/31782-server_docker-nextcloud-talk-plugin-and-turnserver/
|
||||
- https://markus-blog.de/index.php/2020/11/20/how-to-run-nextcloud-talk-high-performance-backend-with-stun-turnserver-on-ubuntu-with-server_docker-compose/
|
||||
- https://markus-blog.de/index.php/2020/11/20/how-to-run-nextcloud-talk-high-performance-backend-with-stun-turnserver-on-ubuntu-with-docker-compose/
|
||||
- https://github.com/crazy-max/server_docker-nextcloud/issues/15
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
- name: recreate wordpress
|
||||
command:
|
||||
cmd: server_docker-compose -p wordpress up -d --force-recreate
|
||||
chdir: /home/administrator/server_docker-compose/wordpress/
|
||||
cmd: docker-compose -p wordpress up -d --force-recreate
|
||||
chdir: /home/administrator/docker-compose/wordpress/
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
DOCKER_CLIENT_TIMEOUT: 600
|
||||
|
@ -11,12 +11,12 @@
|
||||
loop: "{{domains}}"
|
||||
notify: restart nginx
|
||||
|
||||
- name: "create /home/administrator/server_docker-compose/wordpress/"
|
||||
- name: "create /home/administrator/docker-compose/wordpress/"
|
||||
file:
|
||||
path: "/home/administrator/server_docker-compose/wordpress/"
|
||||
path: "/home/administrator/docker-compose/wordpress/"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: add server_docker-compose.yml
|
||||
template: src=server_docker-compose.yml.j2 dest=/home/administrator/server_docker-compose/wordpress/server_docker-compose.yml
|
||||
- name: add docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest=/home/administrator/docker-compose/wordpress/docker-compose.yml
|
||||
notify: recreate wordpress
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
- name: recreate yourls
|
||||
command:
|
||||
cmd: server_docker-compose -p yourls up -d --force-recreate
|
||||
chdir: /home/administrator/server_docker-compose/yourls/
|
||||
cmd: docker-compose -p yourls up -d --force-recreate
|
||||
chdir: /home/administrator/docker-compose/yourls/
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
DOCKER_CLIENT_TIMEOUT: 600
|
||||
|
@ -6,12 +6,12 @@
|
||||
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/server_docker-compose/yourls/"
|
||||
- name: "create /home/administrator/docker-compose/yourls/"
|
||||
file:
|
||||
path: "/home/administrator/server_docker-compose/yourls/"
|
||||
path: "/home/administrator/docker-compose/yourls/"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: add server_docker-compose.yml
|
||||
template: src=server_docker-compose.yml.j2 dest=/home/administrator/server_docker-compose/yourls/server_docker-compose.yml
|
||||
- name: add docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest=/home/administrator/docker-compose/yourls/docker-compose.yml
|
||||
notify: recreate yourls
|
||||
|
@ -1,2 +1,2 @@
|
||||
# server_native-docker-compose-restart-unhealthy
|
||||
server_docker-compose restart for containers which are unhealty or excited
|
||||
docker-compose restart for containers which are unhealty or excited
|
@ -1,6 +1,6 @@
|
||||
#!/bin/python
|
||||
#
|
||||
# restart server_docker-compose configurations who have exited or unhealthy containers
|
||||
# restart docker-compose configurations who have exited or unhealthy containers
|
||||
#
|
||||
import subprocess
|
||||
import time
|
||||
@ -49,6 +49,6 @@ for failed_container in failed_containers:
|
||||
filtered_failed_docker_compose_repositories=list(dict.fromkeys(unfiltered_failed_docker_compose_repositories))
|
||||
for filtered_failed_docker_compose_repository in filtered_failed_docker_compose_repositories:
|
||||
print("restarting unhealthy container: " + filtered_failed_docker_compose_repository)
|
||||
print_bash('cd /home/administrator/server_docker-compose/' + filtered_failed_docker_compose_repository + '/ && server_docker-compose restart')
|
||||
print_bash('cd /home/administrator/docker-compose/' + filtered_failed_docker_compose_repository + '/ && docker-compose restart')
|
||||
|
||||
print("finished restart procedure.")
|
@ -1,12 +1,12 @@
|
||||
- name: "reload server_docker-compose-restart-unhealthy.service"
|
||||
- name: "reload docker-compose-restart-unhealthy.service"
|
||||
systemd:
|
||||
name: server_docker-compose-restart-unhealthy.service
|
||||
name: docker-compose-restart-unhealthy.service
|
||||
state: reloaded
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
- name: "restart server_docker-compose-restart-unhealthy.timer"
|
||||
- name: "restart docker-compose-restart-unhealthy.timer"
|
||||
systemd:
|
||||
name: server_docker-compose-restart-unhealthy.timer
|
||||
name: docker-compose-restart-unhealthy.timer
|
||||
state: restarted
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
@ -1,22 +1,22 @@
|
||||
- name: "create {{docker_docker_compose_restart_unhealthy}}"
|
||||
- name: "create {{docker_compose_restart_unhealthy}}"
|
||||
file:
|
||||
path: "{{docker_docker_compose_restart_unhealthy}}"
|
||||
path: "{{docker_compose_restart_unhealthy}}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: create server_docker-compose-restart-unhealthy.py
|
||||
- name: create docker-compose-restart-unhealthy.py
|
||||
copy:
|
||||
src: server_docker-compose-restart-unhealthy.py
|
||||
dest: "{{docker_docker_compose_restart_unhealthy}}server_docker-compose-restart-unhealthy.py"
|
||||
src: docker-compose-restart-unhealthy.py
|
||||
dest: "{{docker_compose_restart_unhealthy}}docker-compose-restart-unhealthy.py"
|
||||
|
||||
- name: create server_docker-compose-restart-unhealthy.service
|
||||
- name: create docker-compose-restart-unhealthy.service
|
||||
template:
|
||||
src: server_docker-compose-restart-unhealthy.service.j2
|
||||
dest: /etc/systemd/system/server_docker-compose-restart-unhealthy.service
|
||||
notify: reload server_docker-compose-restart-unhealthy.service
|
||||
src: docker-compose-restart-unhealthy.service.j2
|
||||
dest: /etc/systemd/system/docker-compose-restart-unhealthy.service
|
||||
notify: reload docker-compose-restart-unhealthy.service
|
||||
|
||||
- name: create server_docker-compose-restart-unhealthy.timer
|
||||
- name: create docker-compose-restart-unhealthy.timer
|
||||
template:
|
||||
src: server_docker-compose-restart-unhealthy.timer.j2
|
||||
dest: "/etc/systemd/system/server_docker-compose-restart-unhealthy.timer"
|
||||
notify: restart server_docker-compose-restart-unhealthy.timer
|
||||
src: docker-compose-restart-unhealthy.timer.j2
|
||||
dest: "/etc/systemd/system/docker-compose-restart-unhealthy.timer"
|
||||
notify: restart docker-compose-restart-unhealthy.timer
|
@ -4,4 +4,4 @@ OnFailure=systemd-email@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/python {{docker_docker_compose_restart_unhealthy}}server_docker-compose-restart-unhealthy.py
|
||||
ExecStart=/bin/python {{docker_compose_restart_unhealthy}}docker-compose-restart-unhealthy.py
|
||||
|
@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=starts server_docker-compose-restart-unhealthy.service
|
||||
Description=starts docker-compose-restart-unhealthy.service
|
||||
|
||||
[Timer]
|
||||
OnCalendar={{on_calendar_docker_compose_restart_unhealthy}}
|
||||
|
@ -1 +1 @@
|
||||
docker_docker_compose_restart_unhealthy: "/home/administrator/scripts/server_docker-compose-restart-unhealthy/"
|
||||
docker_compose_restart_unhealthy: "/home/administrator/scripts/docker-compose-restart-unhealthy/"
|
@ -1,12 +1,12 @@
|
||||
- name: "reload server_docker-health-check.service"
|
||||
- name: "reload docker-health-check.service"
|
||||
systemd:
|
||||
name: server_docker-health-check.service
|
||||
name: docker-health-check.service
|
||||
state: reloaded
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
- name: "restart server_docker-health-check.timer"
|
||||
- name: "restart docker-health-check.timer"
|
||||
systemd:
|
||||
name: server_docker-health-check.timer
|
||||
name: docker-health-check.timer
|
||||
state: restarted
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
@ -4,17 +4,17 @@
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: create server_docker-health-check.sh
|
||||
- name: create docker-health-check.sh
|
||||
copy:
|
||||
src: server_docker-health-check.sh
|
||||
dest: "{{docker_health_check_folder}}server_docker-health-check.sh"
|
||||
src: docker-health-check.sh
|
||||
dest: "{{docker_health_check_folder}}docker-health-check.sh"
|
||||
|
||||
- name: create server_docker-health-check.service
|
||||
template: src=server_docker-health-check.service.j2 dest=/etc/systemd/system/server_docker-health-check.service
|
||||
notify: reload server_docker-health-check.service
|
||||
- name: create docker-health-check.service
|
||||
template: src=docker-health-check.service.j2 dest=/etc/systemd/system/docker-health-check.service
|
||||
notify: reload docker-health-check.service
|
||||
|
||||
- name: create server_docker-health-check.timer
|
||||
- name: create docker-health-check.timer
|
||||
template:
|
||||
src: server_docker-health-check.timer.j2
|
||||
dest: "/etc/systemd/system/server_docker-health-check.timer"
|
||||
notify: restart server_docker-health-check.timer
|
||||
src: docker-health-check.timer.j2
|
||||
dest: "/etc/systemd/system/docker-health-check.timer"
|
||||
notify: restart docker-health-check.timer
|
||||
|
@ -4,4 +4,4 @@ OnFailure=systemd-email@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/bash {{docker_health_check_folder}}server_docker-health-check.sh
|
||||
ExecStart=/bin/bash {{docker_health_check_folder}}docker-health-check.sh
|
||||
|
@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=starts server_docker-health-check.service
|
||||
Description=starts docker-health-check.service
|
||||
|
||||
[Timer]
|
||||
OnCalendar={{on_calendar_docker_health_check}}
|
||||
|
@ -16,4 +16,4 @@ curl -I {{address}}
|
||||
- https://askubuntu.com/questions/1103626/should-i-enable-client-max-body-size-proxy-request-buffering-and-proxy-bufferin
|
||||
- https://serverfault.com/questions/692577/whats-the-difference-between-proxy-buffer-and-proxy-cache-module-in-nginx-confi
|
||||
- https://github.com/sissbruecker/linkding/issues/88
|
||||
- https://www.bogotobogo.com/DevOps/Docker/server_docker-Compose-Nginx-Reverse-Proxy-Multiple-Containers.php
|
||||
- https://www.bogotobogo.com/DevOps/Docker/docker-compose-Nginx-Reverse-Proxy-Multiple-Containers.php
|
||||
|
@ -1,13 +1,13 @@
|
||||
---
|
||||
- name: docker & docker compose install
|
||||
pacman:
|
||||
name: ['docker','server_docker-compose']
|
||||
name: ['docker','docker-compose']
|
||||
state: present
|
||||
notify: docker restart
|
||||
|
||||
- name: "create /home/administrator/server_docker-compose/"
|
||||
- name: "create /home/administrator/docker-compose/"
|
||||
file:
|
||||
path: "/home/administrator/server_docker-compose"
|
||||
path: "/home/administrator/docker-compose"
|
||||
state: directory
|
||||
mode: 0700
|
||||
owner: administrator
|
||||
|
Loading…
Reference in New Issue
Block a user