local build

This commit is contained in:
Никита Костюничев 2025-07-11 15:50:50 +03:00
parent e4b53880af
commit 2da803d52d
3 changed files with 38 additions and 1 deletions

2
.gitignore vendored
View File

@ -16,7 +16,7 @@ cookies.json
keys.json keys.json
# docker # docker
docker-compose.yml # docker-compose.yml
# ide # ide
.vscode .vscode

34
docker-compose.yml Normal file
View 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

3
start.sh Normal file
View File

@ -0,0 +1,3 @@
#/bin/bash
docker compose down
docker compose up -d