-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
49 lines (47 loc) · 1.18 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
version: "3.8"
services:
agent-twitter-client-mcp:
build:
context: .
dockerfile: Dockerfile
container_name: agent-twitter-client-mcp
restart: unless-stopped
ports:
- "${MCP_HOST_PORT:-3000}:${MCP_CONTAINER_PORT:-3000}"
environment:
- NODE_ENV=production
- PORT=${MCP_CONTAINER_PORT:-3000}
# Twitter authentication - these should be set in a .env file or through environment variables
- AUTH_METHOD=cookies
- TWITTER_COOKIES=[]
# For username/password auth
- TWITTER_USERNAME=
- TWITTER_PASSWORD=
- TWITTER_EMAIL=
- TWITTER_2FA_SECRET=
# For API auth
- TWITTER_API_KEY=
- TWITTER_API_SECRET_KEY=
- TWITTER_ACCESS_TOKEN=
- TWITTER_ACCESS_TOKEN_SECRET=
volumes:
- ./logs:/app/logs
networks:
- twitter-network
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:${MCP_CONTAINER_PORT:-3000}/health",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
networks:
twitter-network:
driver: bridge