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,6 +1,9 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
|
||||
{% include 'templates/docker-service-{{ database_type }}.yml.j2' %}
|
||||
|
||||
application:
|
||||
image: joomla
|
||||
logging:
|
||||
@@ -11,17 +14,12 @@ services:
|
||||
JOOMLA_DB_PASSWORD: "{{database_password}}"
|
||||
JOOMLA_DB_NAME: "{{database_databasename}}"
|
||||
restart: always
|
||||
{% include 'templates/docker-container-depends-on.yml.j2' %}
|
||||
volumes:
|
||||
- data:/var/www/html
|
||||
ports:
|
||||
- "127.0.0.1:{{http_port}}:80"
|
||||
{% include 'templates/docker-container-networks.yml.j2' %}
|
||||
{% if enable_central_database %}
|
||||
depends_on:
|
||||
database:
|
||||
|
||||
{% include 'templates/docker-service-{{ database_type }}.yml.j2' %}
|
||||
{% include 'templates/docker-container-depends-on-just-database.yml.j2' %}
|
||||
|
||||
{% include 'templates/docker-compose-volumes.yml.j2' %}
|
||||
data:
|
||||
|
Reference in New Issue
Block a user