mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Refactored docker rroles dto use new role docker-compose
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
---
|
||||
- name: recreate mybb
|
||||
command:
|
||||
cmd: docker-compose -p mybb up -d --force-recreate
|
||||
chdir: "{{docker_compose_instance_directory}}"
|
||||
environment:
|
||||
COMPOSE_HTTP_TIMEOUT: 600
|
||||
DOCKER_CLIENT_TIMEOUT: 600
|
@@ -1,2 +1,2 @@
|
||||
dependencies:
|
||||
- nginx-docker-reverse-proxy
|
||||
- docker-compose
|
@@ -16,10 +16,10 @@
|
||||
template:
|
||||
src: "default.conf"
|
||||
dest: "{{docker_compose_instance_confd_defaultconf_file}}"
|
||||
notify: recreate mybb
|
||||
notify: docker compose project setup
|
||||
|
||||
- name: add docker-compose.yml
|
||||
template:
|
||||
src: "docker-compose.yml.j2"
|
||||
dest: "{{docker_compose_instance_directory}}docker-compose.yml"
|
||||
notify: recreate mybb
|
||||
notify: docker compose project setup
|
||||
|
@@ -1,11 +1,11 @@
|
||||
---
|
||||
docker_compose_instance_directory: "{{path_docker_compose_instances}}mybb/"
|
||||
docker_compose_instance_confd_directory: "{{docker_compose_instance_directory}}conf.d/"
|
||||
docker_compose_project_name: "mybb"
|
||||
docker_compose_instance_directory: "{{path_docker_compose_instances}}{{docker_compose_project_name}}/"
|
||||
docker_compose_instance_confd_directory: "{{docker_compose_instance_directory}}conf.d/"
|
||||
docker_compose_instance_confd_defaultconf_file: "{{docker_compose_instance_confd_directory}}default.conf"
|
||||
target_mount_conf_d_directory: "{{nginx_servers_directory}}"
|
||||
source_domain: "mybb.{{top_domain}}"
|
||||
database_instance: "mybb"
|
||||
database_host: "database"
|
||||
database_databasename: "{{database_instance}}"
|
||||
database_username: "{{database_instance}}"
|
||||
database_password: "{{mybb_database_password}}"
|
||||
target_mount_conf_d_directory: "{{nginx_servers_directory}}"
|
||||
source_domain: "mybb.{{top_domain}}"
|
||||
database_host: "database"
|
||||
database_databasename: "{{docker_compose_project_name}}"
|
||||
database_username: "{{docker_compose_project_name}}"
|
||||
database_password: "{{mybb_database_password}}"
|
Reference in New Issue
Block a user