Refactored docker rroles dto use new role docker-compose

This commit is contained in:
2023-12-30 16:49:37 +01:00
parent f70a7690a8
commit 3fa052f71d
79 changed files with 161 additions and 300 deletions

View File

@@ -1,8 +0,0 @@
---
- name: recreate mastodon
command:
cmd: docker-compose -p mastodon up -d --force-recreate
chdir: "{{docker_compose_instance_directory}}"
environment:
COMPOSE_HTTP_TIMEOUT: 600
DOCKER_CLIENT_TIMEOUT: 600

View File

@@ -1,2 +1,2 @@
dependencies:
- nginx-docker-reverse-proxy
- docker-compose

View File

@@ -13,10 +13,10 @@
- name: copy docker-compose.yml
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
notify: recreate mastodon
notify: docker compose project setup
- name: copy configuration
template:
src: .env.production.j2
dest: "{{docker_compose_instance_directory}}.env.production"
notify: recreate mastodon
notify: docker compose project setup

View File

@@ -1,6 +1,6 @@
docker_compose_instance_directory: "{{path_docker_compose_instances}}mastodon/"
database_instance: "mastodon"
database_host: "database"
database_databasename: "postgres" # todo: Change this to standart name scheme for future setups
database_username: "postgres" # todo: Change this to standart name scheme for future setups
database_password: "" # todo: Change this to standart name scheme for future setups
docker_compose_project_name: "mastodon"
docker_compose_instance_directory: "{{path_docker_compose_instances}}{{docker_compose_project_name}}/"
database_host: "database"
database_databasename: "postgres" # todo: Change this to standart name scheme for future setups
database_username: "postgres" # todo: Change this to standart name scheme for future setups
database_password: "" # todo: Change this to standart name scheme for future setups