mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Finished final raw draft of central database implementation. UNTESTED.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
|
||||
{% include 'templates/docker-service-{{ database_type }}.yml.j2' %}
|
||||
|
||||
application:
|
||||
logging:
|
||||
driver: journald
|
||||
@@ -9,10 +12,9 @@ services:
|
||||
restart: always
|
||||
volumes:
|
||||
- data:/var/www/html
|
||||
{% if not enable_central_database %}
|
||||
depends_on:
|
||||
- database
|
||||
{% endif %}
|
||||
{% include 'templates/docker-container-depends-on-just-database.yml.j2' %}
|
||||
{% include 'templates/docker-container-networks.yml.j2' %}
|
||||
|
||||
server:
|
||||
logging:
|
||||
driver: journald
|
||||
@@ -25,8 +27,9 @@ services:
|
||||
volumes:
|
||||
- "{{docker_compose_instance_confd_directory}}:{{target_mount_conf_d_directory}}:ro"
|
||||
- "data:/var/www/html:ro"
|
||||
|
||||
{% include 'templates/docker-service-{{ database_type }}.yml.j2' %}
|
||||
{% include 'templates/docker-container-networks.yml.j2' %}
|
||||
|
||||
{% include 'templates/docker-compose-volumes.yml.j2' %}
|
||||
data:
|
||||
data:
|
||||
|
||||
{% include 'templates/docker-compose-networks.yml.j2' %}
|
Reference in New Issue
Block a user