From 61abe179e2f487e1105d98293c19cebc7f335b20 Mon Sep 17 00:00:00 2001 From: "luca.gambarotto" Date: Wed, 4 Jun 2025 18:46:49 +0000 Subject: [PATCH] revert 97d5077549ce3f48b5c0778d38b743c72cdfb6e5 revert Update docker-compose.yml --- docker-compose.yml | 67 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 51 insertions(+), 16 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e2bb982..362b664 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,18 +1,53 @@ -version: '3.7' - services: - cobalt-api: - image: ghcr.io/imputnet/cobalt:latest - restart: unless-stopped - ports: - - "9000:9000" - environment: - API_URL: "" + cobalt: + image: ghcr.io/imputnet/cobalt:11 - cobalt-web: - image: ghcr.io/imputnet/cobalt-web:latest - restart: unless-stopped - ports: - - "3000:3000" - environment: - API_URL: # ->> Connects directly to the API \ No newline at end of file + init: true + read_only: true + restart: unless-stopped + container_name: cobalt + + ports: + - 9000:9000/tcp + # if you use a reverse proxy (such as nginx), + # uncomment the next line and remove the one above (9000:9000/tcp): + # - 127.0.0.1:9000:9000 + + environment: + # replace https://api.url.example/ with your instance's url + # or else tunneling functionality won't work properly + API_URL: "https://cobalt.giovanesaggio.com/" + + # if you want to use cookies for fetching data from services, + # uncomment the next line & volumes section + # COOKIE_PATH: "/cookies.json" + + # it's recommended to configure bot protection or api keys if the instance is public, + # see /docs/protect-an-instance.md for more info + + # see /docs/run-an-instance.md for more variables that you can use here + + labels: + - com.centurylinklabs.watchtower.scope=cobalt + + # uncomment only if you use the COOKIE_PATH variable + # volumes: + # - ./cookies.json:/cookies.json + + # watchtower updates the cobalt image automatically + 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 + + # if needed, use this image for automatically generating poToken & visitor_data + # yt-session-generator: + # image: ghcr.io/imputnet/yt-session-generator:webserver + + # init: true + # restart: unless-stopped + # container_name: yt-session-generator + # labels: + # - com.centurylinklabs.watchtower.scope=cobalt \ No newline at end of file