-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (50 loc) · 1.65 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (50 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
services:
katana:
build:
context: .
dockerfile: Dockerfile
args:
GNO_REF: ${GNO_REF:-master}
image: katana:latest
container_name: katana
# katana is a permanent backend: keep it running and restart on failure.
restart: unless-stopped
# Secrets / per-deployment overrides (see config.yaml.example). Uncomment and
# add real values to enable; keep at least one entry for a valid mapping.
environment:
KATANA_LOG_LEVEL: "info"
# KATANA_GNOMON_BASE_URL: "http://gnomonitoring:8989"
# KATANA_GNOMON_API_TOKEN: ""
# KATANA_GNOKEY_PASSWORD: ""
# KATANA_GNOKEY_MNEMONIC: ""
# KATANA_DISCORD_WEBHOOK: ""
# KATANA_SLACK_WEBHOOK: ""
# KATANA_TELEGRAM_TOKEN: ""
# KATANA_TELEGRAM_CHAT_ID: ""
# Expose the /health endpoint (enable `web:` in config.yaml, listen ":8990").
ports:
- "8990:8990"
volumes:
# Your configuration (read-only).
- ./config.yaml:/app/config.yaml:ro
# Persistent SQLite DB + gnokey keybase.
# In config.yaml set (for the container):
# storage.sqlite_path: "/app/data/katana.db"
# gnokey.home: "/app/data/keybase"
- katana-data:/app/data
command: ["--config", "/app/config.yaml"]
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8990/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
# If you run gnomonitoring via its own compose, join its network here so
# KATANA_GNOMON_BASE_URL can use the service name.
# networks:
# - gnomonitoring
volumes:
katana-data:
# networks:
# gnomonitoring:
# external: true