-
-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathfull.yml
More file actions
67 lines (63 loc) · 1.99 KB
/
Copy pathfull.yml
File metadata and controls
67 lines (63 loc) · 1.99 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
59
60
61
62
63
64
65
66
67
# Degoog + Valkey shared cache + PostgreSQL indexer backend.
# Good for: high-traffic public instances that want both cross-process caching
# and a fairly scalable indexer.
#
# Setup:
# mkdir -p ./data && sudo chown -R 1000:1000 ./data
# Change POSTGRES_PASSWORD below before starting.
# Set DEGOOG_SETTINGS_PASSWORDS before exposing this instance to the internet.
services:
degoog:
image: ghcr.io/degoog-org/degoog:latest
volumes:
- ./data:/app/data
ports:
- "4444:4444"
restart: unless-stopped
environment:
# Leave both unset only for trusted local/LAN use. If this instance is
# reachable from the internet, SET A PASSWORD: an unlocked instance lets
# anyone install extensions, which runs code on the server.
# DEGOOG_SETTINGS_PASSWORDS: "set-a-strong-password-here"
# When "true", every admin and store action stays behind the password
# above even on a local network.
DEGOOG_PUBLIC_INSTANCE: "false"
DEGOOG_VALKEY_URL: "redis://degoog-valkey:6379"
DEGOOG_POSTGRES: "postgresql://degoog:changeme@degoog-postgres:5432/degoog"
depends_on:
degoog-valkey:
condition: service_started
degoog-postgres:
condition: service_healthy
degoog-valkey:
image: valkey/valkey:8-alpine
command: ["valkey-server", "--save", "", "--appendonly", "no"]
restart: unless-stopped
user: "1000:1000"
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
degoog-postgres:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_DB: degoog
POSTGRES_USER: degoog
POSTGRES_PASSWORD: changeme
volumes:
- postgres-data:/var/lib/postgresql/data
user: "70:70"
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD-SHELL", "pg_isready -U degoog -d degoog"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
volumes:
postgres-data: