mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented a new docker compose structure which seperates between docker compose files and environment variable file to protect credentials better. Also did recatoring. Changes not fully tested
This commit is contained in:
@@ -4,14 +4,7 @@ services:
|
||||
|
||||
application:
|
||||
image: "joomla:{{applications.joomla.version}}"
|
||||
logging:
|
||||
driver: journald
|
||||
environment:
|
||||
JOOMLA_DB_HOST: "{{database_host}}:{{database_port}}"
|
||||
JOOMLA_DB_USER: "{{database_username}}"
|
||||
JOOMLA_DB_PASSWORD: "{{database_password}}"
|
||||
JOOMLA_DB_NAME: "{{database_name}}"
|
||||
restart: {{docker_restart_policy}}
|
||||
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
||||
volumes:
|
||||
- data:/var/www/html
|
||||
ports:
|
||||
|
4
roles/docker-joomla/templates/env.j2
Normal file
4
roles/docker-joomla/templates/env.j2
Normal file
@@ -0,0 +1,4 @@
|
||||
JOOMLA_DB_HOST="{{database_host}}:{{database_port}}"
|
||||
JOOMLA_DB_USER="{{database_username}}"
|
||||
JOOMLA_DB_PASSWORD="{{database_password}}"
|
||||
JOOMLA_DB_NAME="{{database_name}}"
|
Reference in New Issue
Block a user