From f52da26a7097891db285c7109d39822e7ddf81e4 Mon Sep 17 00:00:00 2001 From: blitzwing Date: Sun, 8 Sep 2024 01:13:18 +0000 Subject: [PATCH] Add docker-compose.yml --- docker-compose.yml | 60 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..951b597 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,60 @@ +version: '3.5' + +services: + cobalt-api: + image: ghcr.io/imputnet/cobalt:7 + restart: unless-stopped + container_name: cobalt-api + + init: true + + # if container doesn't run detached on your machine, uncomment the next line + #tty: true + + ports: + - 127.0.0.1:9000:9000 + + environment: + # replace https://api.cobalt.tools/ with your instance's target url in same format + API_URL: "https://co-api.blitzw.in/" + # replace eu-nl with your instance's distinctive name + API_NAME: "co-api" + # if you want to use cookies when fetching data from services, uncomment the next line and the lines under volume + # COOKIE_PATH: "/cookies.json" + # see docs/run-an-instance.md for more information + labels: + - com.centurylinklabs.watchtower.scope=cobalt + + # if you want to use cookies when fetching data from services, uncomment volumes and next line + #volumes: + #- ./cookies.json:/cookies.json + + cobalt-web: + image: ghcr.io/imputnet/cobalt:7 + restart: unless-stopped + 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 \ No newline at end of file