mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-23 21:21:03 +01:00
43 lines
776 B
Django/Jinja
43 lines
776 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
|
|
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
|
|
redis:
|
|
image: redis:alpine
|
|
volumes:
|
|
- redis:/data
|
|
restart: "always"
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
assets:
|
|
database:
|
|
data:
|
|
redis:
|
|
config: |