-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (34 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
43 lines (34 loc) · 1.27 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
version: "3.8"
services:
relatr:
# Use the pre-built image from GitHub Container Registry
# image: ghcr.io/contextvm/relatr:latest
# Alternatively, build from local Dockerfile
build:
context: .
dockerfile: Dockerfile
container_name: relatr
# Match host user permissions for data directory
user: "${UID:-1000}:${GID:-1000}"
# Environment variables - see .env.example for all options
environment:
# Required
SERVER_SECRET_KEY: ${SERVER_SECRET_KEY}
# Optional defaults will be used if not specified
DEFAULT_SOURCE_PUBKEY: 6e468422dfb74a5738702a8823b9b28168abab8655faacb6853cd0ee15deee93
SERVER_RELAYS: wss://relay.contextvm.org
# Persist data directory for database and social graph.
# Optionally persist ./plugins as well if you want filesystem-managed
# plugins installed at runtime to survive container recreation.
volumes:
- ./data:/usr/src/app/data
- ./plugins:/usr/src/app/plugins
ports:
# Bind to localhost by default to prevent accidental public exposure
- 127.0.0.1:3000:3000
# Restart policy for production reliability
restart: unless-stopped
# Volumes definition (optional, uses bind mount by default)
# volumes:
# relatr-data:
# driver: local