47 lines
1.0 KiB
Django/Jinja
47 lines
1.0 KiB
Django/Jinja
# {{ ansible_managed }}
|
|
version: "3.4"
|
|
|
|
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
|
|
ports:
|
|
- 8911:10412
|
|
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"
|
|
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
|