-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcompose.yaml
More file actions
32 lines (32 loc) · 778 Bytes
/
Copy pathcompose.yaml
File metadata and controls
32 lines (32 loc) · 778 Bytes
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
services:
grokcli2api:
image: ghcr.io/futureppo/grokcli2api-go:latest
pull_policy: always
restart: unless-stopped
env_file:
- path: .env
required: false
environment:
GROK2API_HOST: 0.0.0.0
GROK2API_PORT: ${GROK2API_PORT:-8088}
GROK_AUTHS_DIR: /auths
ports:
- "${GROK2API_PORT:-8088}:${GROK2API_PORT:-8088}"
volumes:
- ./auths:/auths:rw
read_only: true
tmpfs:
- /tmp:size=64m,mode=1777
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
stop_grace_period: 15s
healthcheck:
test:
- CMD-SHELL
- wget -q -O /dev/null "http://127.0.0.1:$${GROK2API_PORT:-8088}/"
interval: 30s
timeout: 5s
retries: 3
start_period: 30s