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:
8
roles/docker-compose/templates/services/base.yml.j2
Normal file
8
roles/docker-compose/templates/services/base.yml.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
# Base for docker services
|
||||
restart: {{docker_restart_policy}}
|
||||
env_file:
|
||||
- "{{docker_compose.files.env}}"
|
||||
logging:
|
||||
driver: journald
|
||||
|
||||
{{ "\n" }}
|
@@ -4,7 +4,11 @@ _docker_compose_directories_instance: "{{ path_docker_compose_instances }}{{ app
|
||||
# @See https://chatgpt.com/share/67a23d18-fb54-800f-983c-d6d00752b0b4
|
||||
docker_compose:
|
||||
directories:
|
||||
instance: "{{_docker_compose_directories_instance}}" # Folder for docker-compose.yml file
|
||||
env: "{{_docker_compose_directories_instance}}/.env/" # Folder for env files
|
||||
services: "{{_docker_compose_directories_instance}}/services/" # Folder for services
|
||||
volumes: "{{_docker_compose_directories_instance}}/volumes/" # Folder for volumes
|
||||
instance: "{{_docker_compose_directories_instance}}" # Folder for docker-compose.yml file
|
||||
env: "{{_docker_compose_directories_instance}}.env/" # Folder for env files
|
||||
services: "{{_docker_compose_directories_instance}}services/" # Folder for services
|
||||
volumes: "{{_docker_compose_directories_instance}}volumes/" # Folder for volumes
|
||||
config: "{{_docker_compose_directories_instance}}config/" # Folder for configuration files
|
||||
files:
|
||||
env: "{{_docker_compose_directories_instance}}.env/env" # General env file
|
||||
docker_compose: "{{_docker_compose_directories_instance}}docker-compose.yml" # Docker Compose file
|
||||
|
Reference in New Issue
Block a user