aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..6b28926
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,20 @@
+services:
+ yt-local:
+ build: .
+ container_name: yt-local
+ restart: unless-stopped
+ ports:
+ - "127.0.0.1:9010:9010"
+ volumes:
+ - yt-local-data:/home/appuser/.yt-local
+ environment:
+ - ENABLE_TOR=0
+ healthcheck:
+ test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:9010')"]
+ interval: 30s
+ timeout: 5s
+ start_period: 10s
+ retries: 3
+
+volumes:
+ yt-local-data: