mirror of
https://github.com/imputnet/cobalt.git
synced 2025-08-13 16:08:27 +00:00
local build
This commit is contained in:
parent
e4b53880af
commit
2da803d52d
2
.gitignore
vendored
2
.gitignore
vendored
@ -16,7 +16,7 @@ cookies.json
|
||||
keys.json
|
||||
|
||||
# docker
|
||||
docker-compose.yml
|
||||
# docker-compose.yml
|
||||
|
||||
# ide
|
||||
.vscode
|
||||
|
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal file
@ -0,0 +1,34 @@
|
||||
services:
|
||||
cobalt-api:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
|
||||
working_dir: /app
|
||||
|
||||
init: true
|
||||
read_only: true
|
||||
restart: unless-stopped
|
||||
container_name: cobalt-api
|
||||
|
||||
ports:
|
||||
- 9000:9000/tcp
|
||||
|
||||
environment:
|
||||
API_URL: "http://localhost:9000/"
|
||||
API_AUTH_REQUIRED: 1
|
||||
API_KEY_URL: "file:///keys.json"
|
||||
|
||||
labels:
|
||||
- com.centurylinklabs.watchtower.scope=cobalt
|
||||
|
||||
volumes:
|
||||
- ./keys.json:/keys.json:ro
|
||||
|
||||
# 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
|
Loading…
Reference in New Issue
Block a user