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:
@@ -9,12 +9,16 @@
|
||||
loop_control:
|
||||
loop_var: domain
|
||||
|
||||
- name: copy docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest={{docker_compose.directories.instance}}docker-compose.yml
|
||||
- name: "create {{docker_compose.files.docker_compose}}"
|
||||
template:
|
||||
src: "docker-compose.yml.j2"
|
||||
dest: "{{docker_compose.files.docker_compose}}"
|
||||
notify: docker compose project setup
|
||||
|
||||
- name: copy configuration
|
||||
- name: "create {{docker_compose.files.env}}"
|
||||
template:
|
||||
src: env.j2
|
||||
dest: "{{docker_compose.directories.instance}}.env"
|
||||
src: "env.j2"
|
||||
dest: "{{docker_compose.files.env}}"
|
||||
mode: '770'
|
||||
force: yes
|
||||
notify: docker compose project setup
|
||||
|
@@ -6,8 +6,7 @@ services:
|
||||
|
||||
application:
|
||||
image: chocobozzz/peertube:production-{{applications.peertube.version}}
|
||||
env_file:
|
||||
- .env
|
||||
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
||||
ports:
|
||||
- "1935:1935"
|
||||
- "{{http_port}}:9000"
|
||||
@@ -15,7 +14,6 @@ services:
|
||||
- assets:/app/client/dist
|
||||
- data:/data
|
||||
- config:/config
|
||||
restart: "always"
|
||||
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
||||
{% include 'templates/docker/container/networks.yml.j2' %}
|
||||
|
||||
|
Reference in New Issue
Block a user