aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 6b28926bd736d80536eb6003d8ecbac196454b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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: