32 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-11-17 14:47:25 +01:00
services:
2024-01-19 15:12:18 +01:00
{% include 'templates/docker/services/redis.yml.j2' %}
{% include 'roles/docker-central-database/templates/services/' + database_type + '.yml.j2' %}
2022-11-17 14:47:25 +01:00
application:
2025-02-03 11:44:13 +01:00
image: chocobozzz/peertube:production-{{applications.peertube.version}}
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
2022-11-17 14:47:25 +01:00
ports:
2025-02-11 00:06:41 +01:00
- "1935:1935" # @todo Add to ports
- "127.0.0.1:{{http_port}}:9000"
2022-11-17 14:47:25 +01:00
volumes:
- assets:/app/client/dist
- data:/data
- config:/config
2024-01-19 15:12:18 +01:00
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
{% include 'templates/docker/container/networks.yml.j2' %}
healthcheck:
# This just tests if the service is running on port 9000. It doesn't check if there is an 200 or e.g. an 404 response
test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/localhost/9000 && echo -e 'GET / HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n' >&3 && cat <&3 | grep -q 'HTTP/1.1'"]
interval: 30s
timeout: 10s
retries: 3
2024-01-02 21:39:17 +01:00
2024-01-19 15:12:18 +01:00
{% include 'templates/docker/compose/volumes.yml.j2' %}
2022-11-17 14:47:25 +01:00
assets:
data:
redis:
config:
2024-01-19 15:12:18 +01:00
{% include 'templates/docker/compose/networks.yml.j2' %}