2023-05-19 14:13:48 +01:00
|
|
|
services:
|
|
|
|
cobalt-api:
|
2024-09-09 17:50:50 +01:00
|
|
|
image: ghcr.io/imputnet/cobalt:10
|
2023-07-21 13:35:04 +01:00
|
|
|
|
2023-09-09 20:38:08 +01:00
|
|
|
init: true
|
2024-11-01 13:48:12 +00:00
|
|
|
read_only: true
|
|
|
|
restart: unless-stopped
|
|
|
|
container_name: cobalt-api
|
2023-09-09 20:38:08 +01:00
|
|
|
|
2023-05-19 14:13:48 +01:00
|
|
|
ports:
|
|
|
|
- 9000:9000/tcp
|
2024-11-01 13:48:12 +00:00
|
|
|
# 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
|
2023-07-21 13:35:04 +01:00
|
|
|
|
2023-05-19 14:13:48 +01:00
|
|
|
environment:
|
2024-11-01 13:48:12 +00:00
|
|
|
# replace https://api.url.example/ with your instance's url
|
|
|
|
# or else tunneling functionality won't work properly
|
|
|
|
API_URL: "https://api.url.example/"
|
|
|
|
|
|
|
|
# if you want to use cookies for fetching data from services,
|
|
|
|
# uncomment the next line & volumes section
|
2024-04-17 18:57:36 +01:00
|
|
|
# COOKIE_PATH: "/cookies.json"
|
2024-11-01 13:48:12 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2023-09-09 17:31:24 +01:00
|
|
|
labels:
|
|
|
|
- com.centurylinklabs.watchtower.scope=cobalt
|
|
|
|
|
2024-11-01 13:48:12 +00:00
|
|
|
# uncomment only if you use the COOKIE_PATH variable
|
|
|
|
# volumes:
|
|
|
|
# - ./cookies.json:/cookies.json
|
2023-09-09 20:38:08 +01:00
|
|
|
|
2024-11-01 13:48:12 +00:00
|
|
|
# watchtower updates the cobalt image automatically
|
2023-09-09 17:31:24 +01:00
|
|
|
watchtower:
|
|
|
|
image: ghcr.io/containrrr/watchtower
|
|
|
|
restart: unless-stopped
|
2024-05-16 17:34:35 +01:00
|
|
|
command: --cleanup --scope cobalt --interval 900 --include-restarting
|
2023-09-09 17:31:24 +01:00
|
|
|
volumes:
|
2023-12-02 16:59:37 +00:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|