Files
beepi/playbooks/ott/ott-server.container.j2
T
2026-06-18 12:25:18 +02:00

29 lines
729 B
Django/Jinja

[Unit]
Description=OpenTogetherTube Server
Requires=ott-db.service ott-redis.service
After=ott-db.service ott-redis.service
[Container]
ContainerName=ott-server
Image=git.secretbee.buzz/bee/ott:latest
Network=ott.network
PublishPort=127.0.0.1:8080:8080
Volume=/home/ott/data/env:/app/env
Environment=PORT=8080
Environment=DOCKER=1
Environment=FFPROBE_PATH=/usr/bin/ffprobe
Environment=REDIS_HOST=ott-redis
Environment=REDIS_PORT=6379
Environment=DB_MODE=postgres
Environment=POSTGRES_HOST=ott-db
Environment=POSTGRES_PORT=5432
Environment=POSTGRES_DB=opentogethertube
Environment=POSTGRES_USER=opentogethertube
Environment=POSTGRES_PASSWORD={{ ott_db_password }}
[Service]
Restart=on-failure
[Install]
WantedBy=default.target