Added draft for central postgres and mariadb. variables and networks still need to be adapted

This commit is contained in:
2023-12-31 11:14:18 +01:00
parent 3fa052f71d
commit a112b67eda
48 changed files with 340 additions and 213 deletions

View File

@@ -12,22 +12,14 @@ services:
- assets:/app/client/dist
- data:/data
- config:/config
restart: "always"
depends_on:
- database
- redis
restart: "always"
database:
image: postgres:13-alpine
env_file:
- .env
volumes:
- database:/var/lib/postgresql/data
restart: "always"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U peertube"]
interval: 10s
timeout: 5s
retries: 6
{% if not ( enable_central_database | lower | bool ) %}
- database
{% include 'templates/docker-postgres-service.yml.j2' %}
{% endif %}
{% include 'templates/docker-redis-service.yml.j2' %}
@@ -35,7 +27,9 @@ services:
- .env
volumes:
assets:
{% if not ( enable_central_database | lower | bool ) %}
database:
{% endif %}
data:
redis:
config: