computer-playbook/roles/docker-peertube/templates/docker-compose.yml.j2

33 lines
636 B
Django/Jinja

version: "3.3"
services:
application:
image: chocobozzz/peertube:production-bullseye
env_file:
- .env
ports:
- "1935:1935"
- "{{http_port}}:9000"
volumes:
- assets:/app/client/dist
- data:/data
- config:/config
restart: "always"
depends_on:
- redis
{% if not enable_central_database %}
- database
{% include 'templates/docker-{{ database_type }}-service.yml.j2' %}
{% endif %}
{% include 'templates/docker-redis-service.yml.j2' %}
env_file:
- .env
volumes:
assets:
{% include 'templates/docker-database-volume.yml.j2' %}
data:
redis:
config: