-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (50 loc) · 1.57 KB
/
docker-compose.yml
File metadata and controls
55 lines (50 loc) · 1.57 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
services:
commander-slack:
container_name: keeper-service
ports:
- port:port
image: keeper/commander:latest
command: service-create -p 8900 -c 'search, share-record, share-folder, record-add, one-time-share, pedm, device-approve, get' -f json -q y -ur J_ZQJg4sMBsF0GYsuCtDHA --ksm-config XXXXXXXX --record XXXXXXXX
healthcheck:
test:
- CMD-SHELL
- python -c "import sys, urllib.request; sys.exit(0 if urllib.request.urlopen('http://localhost:port/health', timeout=2).status == 200 else 1)"
interval: 60s
timeout: 3s
start_period: 10s
retries: 30
restart: unless-stopped
slack-app:
container_name: keeper-slack-app
build:
context: .
dockerfile: Dockerfile
image: keeper/slack-app:latest
environment:
# KSM Configuration - Base64 encoded KSM config
- KSM_CONFIG=YOURKSMTOKENHERE
# KSM Record Titles (fixed titles)
- COMMANDER_RECORD=COMMADERSERVICEMODECONFIG
- SLACK_RECORD=COMMADERSERVICEMODESLACKCONFIG
depends_on:
commander-slack:
condition: service_healthy
restart: unless-stopped
volumes:
- ./logs:/app/logs
# For connecting to Keeper Commander service
extra_hosts:
- "host.docker.internal:host-gateway"
# Health check
healthcheck:
test: ["CMD", "python", "-c", "import sys; sys.exit(0)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Logging configuration
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"