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,11 @@
|
||||
version: "3.3"
|
||||
|
||||
services:
|
||||
|
||||
{% include 'templates/docker-service-redis.yml.j2' %}
|
||||
|
||||
{% include 'templates/docker-service-{{ database_type }}.yml.j2' %}
|
||||
|
||||
application:
|
||||
image: chocobozzz/peertube:production-bullseye
|
||||
env_file:
|
||||
@@ -13,21 +18,13 @@ services:
|
||||
- data:/data
|
||||
- config:/config
|
||||
restart: "always"
|
||||
depends_on:
|
||||
- redis
|
||||
{% if not enable_central_database %}
|
||||
- database
|
||||
|
||||
{% include 'templates/docker-service-{{ database_type }}.yml.j2' %}
|
||||
{% endif %}
|
||||
|
||||
{% include 'templates/docker-service-redis.yml.j2' %}
|
||||
|
||||
env_file:
|
||||
- .env
|
||||
{% include 'templates/docker-container-depends-on-database-redis.yml.j2' %}
|
||||
{% include 'templates/docker-container-networks.yml.j2' %}
|
||||
|
||||
{% include 'templates/docker-compose-volumes.yml.j2' %}
|
||||
assets:
|
||||
data:
|
||||
redis:
|
||||
config:
|
||||
config:
|
||||
|
||||
{% include 'templates/docker-compose-networks.yml.j2' %}
|
Reference in New Issue
Block a user