-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
42 lines (40 loc) · 942 Bytes
/
docker-compose.example.yml
File metadata and controls
42 lines (40 loc) · 942 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
33
34
35
36
37
38
39
40
41
42
version: "3.8"
services:
# Nostr network crawler service
# Crawls the network and calculates reputation scores
crawler:
build:
context: .
dockerfile: Dockerfile
container_name: fayan-crawler
command: ["/app/fayan-crawler"]
volumes:
- ./data:/app/data
- ./config.yaml:/app/config.yaml:ro
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# API service with embedded web frontend
# Serves both REST API and web UI
api:
build:
context: .
dockerfile: Dockerfile
container_name: fayan-api
command: ["/app/fayan-api"]
ports:
- "9090:9090"
volumes:
- ./data:/app/data:ro
- ./config.yaml:/app/config.yaml:ro
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
depends_on:
- crawler