docs/docker-compose: revamp the template, add read_only

we use `read_only` on the main instance and i think everyone else should use it too
This commit is contained in:
wukko 2024-11-01 19:48:12 +06:00
parent 2c451c69d0
commit 9cc2df9efd
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -1,30 +1,40 @@
services: services:
cobalt-api: cobalt-api:
image: ghcr.io/imputnet/cobalt:10 image: ghcr.io/imputnet/cobalt:10
init: true
read_only: true
restart: unless-stopped restart: unless-stopped
container_name: cobalt-api container_name: cobalt-api
init: true
ports: ports:
- 9000:9000/tcp - 9000:9000/tcp
# if you're using a reverse proxy, uncomment the next line and remove the one above (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 # - 127.0.0.1:9000:9000
environment: environment:
# replace https://api.cobalt.tools/ with your instance's target url in same format # replace https://api.url.example/ with your instance's url
API_URL: "https://api.cobalt.tools/" # or else tunneling functionality won't work properly
# if you want to use cookies when fetching data from services, uncomment the next line and the lines under volume API_URL: "https://api.url.example/"
# if you want to use cookies for fetching data from services,
# uncomment the next line & volumes section
# COOKIE_PATH: "/cookies.json" # COOKIE_PATH: "/cookies.json"
# see docs/run-an-instance.md for more information
# 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: labels:
- com.centurylinklabs.watchtower.scope=cobalt - com.centurylinklabs.watchtower.scope=cobalt
# if you want to use cookies when fetching data from services, uncomment volumes and next line # uncomment only if you use the COOKIE_PATH variable
# volumes: # volumes:
# - ./cookies.json:/cookies.json # - ./cookies.json:/cookies.json
# update the cobalt image automatically with watchtower # watchtower updates the cobalt image automatically
watchtower: watchtower:
image: ghcr.io/containrrr/watchtower image: ghcr.io/containrrr/watchtower
restart: unless-stopped restart: unless-stopped