mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 02:26:10 +00:00
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:
parent
2c451c69d0
commit
9cc2df9efd
|
@ -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),
|
||||||
#- 127.0.0.1:9000:9000
|
# uncomment the next line and remove the one above (9000:9000/tcp):
|
||||||
|
# - 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
|
||||||
|
|
Loading…
Reference in a new issue