-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.7 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.7 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
services:
blastr:
# use this by running: docker compose pull blastr
image: ghcr.io/xannythepleb/xannyblastr:latest
# Most users should leave this alone
# Uncomment it to build from source
#build: .
container_name: xannyblastr
restart: unless-stopped
ports:
# host:container — change the host port if 7447 is taken
- "0.0.0.0:7447:7447"
volumes:
# Mounted read-write so the CLI can update them. These files MUST exist on the
# host before `up` (copy the .example files), or Docker will create directories.
- ./config.json:/app/config.json
- ./relays.yml:/app/relays.yml
# persist the SQLite database (events, relays, log, meta) in a Docker volume
# as of 1.0.5-beta this is no longer bound to a local host folder
# to avoid permissions issues now that we run as node instead of root
- xannyblastr-db:/app/data
# The relay must listen on 0.0.0.0 inside the container (default in config).
# Put a TLS-terminating reverse proxy (Caddy/nginx) in front for wss://.
migrate-data:
image: ghcr.io/xannythepleb/xannyblastr:latest
#build: .
profiles:
- migrate
volumes:
- ./data:/app/legacy-data:ro
- xannyblastr-db:/app/data
command: ["node", "src/migrate.js"]
# your database goes here
volumes:
xannyblastr-db:
name: xannyblastr-db
# Usage:
# cp config.example.json config.json && cp relays.example.yml relays.yml
# docker compose up -d --build
# docker compose exec blastr node src/cli.js relays add wss://relay.example.com
# docker compose exec blastr node src/cli.js relays sync # after bulk-editing relays.yml
# docker compose exec blastr node src/cli.js status