-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
109 lines (103 loc) · 3.04 KB
/
docker-compose.yml
File metadata and controls
109 lines (103 loc) · 3.04 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: '3.8'
services:
atproto-mcp:
build:
context: .
dockerfile: Dockerfile
target: production
container_name: atproto-mcp-server
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- LOG_LEVEL=info
- ATPROTO_SERVICE=https://bsky.social
# Authentication is optional - server works in unauthenticated mode by default
# Set these via .env file or environment variables to enable authentication
# - ATPROTO_IDENTIFIER=your.handle
# - ATPROTO_PASSWORD=your-app-password
# - ATPROTO_AUTH_METHOD=app-password
# - OAUTH_CLIENT_ID=your-oauth-client-id
# - OAUTH_CLIENT_SECRET=your-oauth-client-secret
# - OAUTH_REDIRECT_URI=http://localhost:3000/oauth/callback
volumes:
- ./logs:/app/logs
- ./data:/app/data
- ./config/production.json:/app/config/production.json:ro
networks:
- atproto-network
healthcheck:
test: ["CMD", "node", "dist/health-check.js"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
deploy:
resources:
limits:
memory: 512M
cpus: '0.5'
reservations:
memory: 256M
cpus: '0.25'
# Optional: Redis for session storage and caching
redis:
image: redis:7-alpine
container_name: atproto-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- atproto-network
command: redis-server --appendonly yes
deploy:
resources:
limits:
memory: 128M
cpus: '0.1'
# Optional: Monitoring with Prometheus
prometheus:
image: prom/prometheus:latest
container_name: atproto-prometheus
restart: unless-stopped
ports:
- "9090:9090"
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
networks:
- atproto-network
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--storage.tsdb.retention.time=200h'
- '--web.enable-lifecycle'
# Optional: Grafana for visualization
grafana:
image: grafana/grafana:latest
container_name: atproto-grafana
restart: unless-stopped
ports:
- "3001:3000"
environment:
# SECURITY WARNING: Change the default admin password before deploying to production!
# Set GRAFANA_ADMIN_PASSWORD environment variable or update this value
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD:-changeme}
volumes:
- grafana-data:/var/lib/grafana
- ./monitoring/grafana/dashboards:/etc/grafana/provisioning/dashboards:ro
- ./monitoring/grafana/datasources:/etc/grafana/provisioning/datasources:ro
networks:
- atproto-network
networks:
atproto-network:
driver: bridge
volumes:
redis-data:
prometheus-data:
grafana-data: