Update docker-compose.yml

This commit is contained in:
blitzwing 2024-09-28 15:58:20 +00:00
parent f52da26a70
commit 28928ba6d8

View file

@ -1,60 +1,32 @@
version: '3.5'
services: services:
cobalt-api: librey:
image: ghcr.io/imputnet/cobalt:7 image: ghcr.io/ahwxorg/librey:latest
restart: unless-stopped container_name: librey
container_name: cobalt-api network_mode: bridge
ports:
init: true - 127.0.0.1:2005:8080
environment:
# if container doesn't run detached on your machine, uncomment the next line - CONFIG_GOOGLE_DOMAIN=com
#tty: true - CONFIG_LANGUAGE=en
- CONFIG_NUMBER_OF_RESULTS=10
ports: - CONFIG_INVIDIOUS_INSTANCE=https://redirect.invidious.io
- 127.0.0.1:9000:9000 - CONFIG_DISABLE_BITTORRENT_SEARCH=false
- CONFIG_HIDDEN_SERVICE_SEARCH=false
environment: - CONFIG_INSTANCE_FALLBACK=true
# replace https://api.cobalt.tools/ with your instance's target url in same format - CONFIG_RATE_LIMIT_COOLDOWN=25
API_URL: "https://co-api.blitzw.in/" - CONFIG_CACHE_TIME=20
# replace eu-nl with your instance's distinctive name - CONFIG_DISABLE_API=false
API_NAME: "co-api" - CONFIG_TEXT_SEARCH_ENGINE=auto
# if you want to use cookies when fetching data from services, uncomment the next line and the lines under volume - CURLOPT_PROXY_ENABLED=false
# COOKIE_PATH: "/cookies.json" - CURLOPT_PROXY=192.0.2.53:8388
# see docs/run-an-instance.md for more information - CURLOPT_PROXYTYPE=CURLPROXY_HTTP
labels: - CURLOPT_USERAGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:116.0) Gecko/20100101 Firefox/116.0
- com.centurylinklabs.watchtower.scope=cobalt - CURLOPT_FOLLOWLOCATION=true
volumes:
# if you want to use cookies when fetching data from services, uncomment volumes and next line # - ./nginx_logs:/var/log/nginx # Disabled by default. These are the NGINX request logs.
#volumes: - ./php_logs:/var/log/php83 # Enabled by default. These are the PHP error logs.
#- ./cookies.json:/cookies.json restart: unless-stopped
watchtower: # Watchtower is not required but highly recommended, since Watchtower will re-pull and restart the LibreY container automatically whenever there's an update.
cobalt-web: image: containrrr/watchtower
image: ghcr.io/imputnet/cobalt:7 volumes:
restart: unless-stopped - /var/run/docker.sock:/var/run/docker.sock
container_name: cobalt-web
init: true
# if container doesn't run detached on your machine, uncomment the next line
#tty: true
ports:
- 127.0.0.1:9001:9001
environment:
# replace https://cobalt.tools/ with your instance's target url in same format
WEB_URL: "https://co.blitzw.in/"
# replace https://api.cobalt.tools/ with preferred api instance url
API_URL: "https://co-api.blitzw.in/"
labels:
- com.centurylinklabs.watchtower.scope=cobalt
# update the cobalt image automatically with watchtower
watchtower:
image: ghcr.io/containrrr/watchtower
restart: unless-stopped
command: --cleanup --scope cobalt --interval 900 --include-restarting
volumes:
- /var/run/docker.sock:/var/run/docker.sock