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