mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-05 01:41:34 +02:00
Renamed server roles
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
|
||||
## new setup
|
||||
```bash
|
||||
cd /home/administrator/docker-compose/akaunting/
|
||||
cd /home/administrator/server_docker-compose/akaunting/
|
||||
export COMPOSE_HTTP_TIMEOUT=600
|
||||
export DOCKER_CLIENT_TIMEOUT=600
|
||||
AKAUNTING_SETUP=true docker-compose -p akaunting up -d
|
||||
AKAUNTING_SETUP=true server_docker-compose -p akaunting up -d
|
||||
```
|
||||
|
||||
Check Webinterface and then execute:
|
||||
|
||||
```bash
|
||||
docker-compose down
|
||||
docker-compose -p akaunting up -d
|
||||
server_docker-compose down
|
||||
server_docker-compose -p akaunting up -d
|
||||
```
|
||||
|
||||
## administration
|
||||
@@ -68,23 +68,23 @@ export COMPOSE_HTTP_TIMEOUT=600
|
||||
export DOCKER_CLIENT_TIMEOUT=600
|
||||
|
||||
# destroy all containers
|
||||
cd /home/administrator/docker-compose/akaunting/ &&
|
||||
docker-compose down &&
|
||||
cd /home/administrator/server_docker-compose/akaunting/ &&
|
||||
server_docker-compose down &&
|
||||
docker network prune -f
|
||||
|
||||
# delete all volumes
|
||||
docker volume rm akaunting_akaunting-data akaunting_akaunting-db akaunting_akaunting-modules
|
||||
|
||||
# rebuild containers
|
||||
docker-compose pull &&
|
||||
docker-compose build &&
|
||||
docker-compose -p akaunting up -d --force-recreate
|
||||
server_docker-compose pull &&
|
||||
server_docker-compose build &&
|
||||
server_docker-compose -p akaunting up -d --force-recreate
|
||||
|
||||
# recover all volumes
|
||||
cd /home/administrator/scripts/docker-volume-backup &&
|
||||
bash docker-volume-recover.sh akaunting_akaunting-modules ${machine_id:0:64} "$backup_version" &&
|
||||
bash docker-volume-recover.sh akaunting_akaunting-data ${machine_id:0:64} "$backup_version" &&
|
||||
bash docker-volume-recover.sh akaunting_akaunting-db ${machine_id:0:64} "$backup_version" akaunting-db "$akaunting_db_password" akaunting
|
||||
cd /home/administrator/scripts/server_docker-volume-backup &&
|
||||
bash server_docker-volume-recover.sh akaunting_akaunting-modules ${machine_id:0:64} "$backup_version" &&
|
||||
bash server_docker-volume-recover.sh akaunting_akaunting-data ${machine_id:0:64} "$backup_version" &&
|
||||
bash server_docker-volume-recover.sh akaunting_akaunting-db ${machine_id:0:64} "$backup_version" akaunting-db "$akaunting_db_password" akaunting
|
||||
|
||||
```
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: setup akaunting
|
||||
command:
|
||||
cmd: docker-compose -p akaunting up -d --force-recreate
|
||||
cmd: server_docker-compose -p akaunting up -d --force-recreate
|
||||
chdir: "{{docker_compose_akaunting_path}}"
|
||||
environment:
|
||||
#AKAUNTING_SETUP: true
|
||||
|
@@ -1,2 +1,2 @@
|
||||
dependencies:
|
||||
- native-docker-reverse-proxy
|
||||
- server_native-docker-reverse-proxy
|
||||
|
@@ -3,7 +3,7 @@
|
||||
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}}
|
||||
|
||||
- name: configure {{domain}}.conf
|
||||
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: register directory
|
||||
|
@@ -1 +1 @@
|
||||
docker_compose_akaunting_path: "/home/administrator/docker-compose/akaunting/"
|
||||
docker_compose_akaunting_path: "/home/administrator/server_docker-compose/akaunting/"
|
||||
|
Reference in New Issue
Block a user