0
0
opnxng-deploy-playbook/templates/compose/cloudtube.yaml.j2

44 lines
1.0 KiB
Django/Jinja

# {{ ansible_managed }}
services:
cloudtube:
image: abeltramo/cloudtube:latest
container_name: cloudtube
security_opt:
- no-new-privileges
cap_drop:
- ALL
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Singapore
depends_on:
- newleaf
restart: unless-stopped
volumes:
- {{ docker_dir }}/cloudtube/db:/workdir/db
- {{ docker_dir }}/cloudtube/config.js:/workdir/config/config.js #instance should be "http://newleaf:3000"
ports:
- 8911:10412
networks:
- cloudtube
newleaf:
image: abeltramo/newleaf:latest
container_name: newleaf
security_opt:
- no-new-privileges
cap_drop:
- ALL
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Singapore
restart: unless-stopped
volumes:
- {{ docker_dir }}/cloudtube/configuration.py:/workdir/configuration.py #set e.g. website_origin = "https://tube.domain.tld" and bind_port = 3000
networks:
- cloudtube
networks:
cloudtube:
name: cloudtube