-
Notifications
You must be signed in to change notification settings - Fork 4
/
second-brain.yml
109 lines (105 loc) · 4.26 KB
/
second-brain.yml
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
# docker-compose -f second-brain.yml up sphinx-swarm -d
version: "2"
services:
load_balancer:
image: traefik:v2.9
container_name: load_balancer
restart: unless-stopped
networks:
- sphinx-swarm
command:
# - "--log.level=DEBUG"
# - "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--entrypoints.mqttsecure.address=:8883"
- "--entrypoints.web.http.redirections.entrypoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
- "--certificatesresolvers.myresolver.acme.email=evanfeenstra@gmail.com"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
- "--certificatesresolvers.myresolver.acme.dnschallenge=true"
- "--certificatesresolvers.myresolver.acme.dnschallenge.provider=route53"
# - "--certificatesresolvers.myresolver.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"
ports:
# The HTTP port
- 80:80
# The Web UI (enabled by --api.insecure=true)
# - 8080:8080
# entrypoints
- 443:443
- 8883:8883
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- /home/admin/letsencrypt:/letsencrypt
environment:
- AWS_REGION=$AWS_REGION
logging:
options:
max-size: 10m
sphinx-swarm:
image: sphinxlightning/sphinx-swarm
container_name: sphinx-swarm
networks:
- sphinx-swarm
depends_on:
- load_balancer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/admin/vol:/vol
ports:
- 8800:8800
labels:
- "traefik.enable=true"
- "traefik.http.routers.elements.rule=Host(`app.${HOST}`)"
- "traefik.http.services.elements.loadbalancer.server.port=8800"
- "traefik.http.routers.elements.tls=true"
- "traefik.http.routers.elements.tls.certresolver=myresolver"
- "traefik.http.routers.elements.entrypoints=websecure"
restart: unless-stopped
environment:
- HOST=$HOST # subdomain e.g. swarmx.sphinx.chat
- DOCKER_RUN=true # client use sphinx-swarm network
- NETWORK=bitcoin
- ROCKET_ADDRESS=0.0.0.0
- ROCKET_PORT=8800
- AWS_REGION=$AWS_REGION
- STAKWORK_ADD_NODE_TOKEN=$STAKWORK_ADD_NODE_TOKEN
- STAKWORK_RADAR_REQUEST_TOKEN=$STAKWORK_RADAR_REQUEST_TOKEN
- SECOND_BRAIN_ONLY=true
- EXTERNAL_LND_ADDRESS=$EXTERNAL_LND_ADDRESS
- EXTERNAL_LND_MACAROON=$EXTERNAL_LND_MACAROON
- EXTERNAL_LND_CERT=$EXTERNAL_LND_CERT
- TWEET_BY_AUTOR_WORKFLOW_ID=$TWEET_BY_AUTOR_WORKFLOW_ID
- TWITTER_BEARER=$TWITTER_BEARER
- YOUTUBE_API_TOKEN=$YOUTUBE_API_TOKEN
- SECOND_BRAIN_GRAPH_URL=$SECOND_BRAIN_GRAPH_URL
- RADAR_SCHEDULER_TIME_IN_SEC=$RADAR_SCHEDULER_TIME_IN_SEC
- RADAR_YOUTUBE_SCHEDULER_TIME_IN_SEC=$RADAR_YOUTUBE_SCHEDULER_TIME_IN_SEC
- RADAR_TWITTER_SCHEDULER_TIME_IN_SEC=$RADAR_TWITTER_SCHEDULER_TIME_IN_SEC
- NAV_BOLTWALL_SHARED_HOST=$NAV_BOLTWALL_SHARED_HOST
- SWARM_UPDATER_PASSWORD=$SWARM_UPDATER_PASSWORD
- JARVIS_FEATURE_FLAG_SCHEMA=$JARVIS_FEATURE_FLAG_SCHEMA
- BACKUP_KEY=$BACKUP_KEY
- BACKUP=$BACKUP
- SUPER_TOKEN=$SUPER_TOKEN
- FEATURE_FLAG_TEXT_EMBEDDINGS=$FEATURE_FLAG_TEXT_EMBEDDINGS
- RADAR_RSS_SCHEDULER_TIME_IN_SEC=$RADAR_RSS_SCHEDULER_TIME_IN_SEC
- RADAR_YOUTUBE_SCHEDULER_JOB=$RADAR_YOUTUBE_SCHEDULER_JOB
- RADAR_TWITTER_SCHEDULER_JOB=$RADAR_TWITTER_SCHEDULER_JOB
- MAX_PAYMENT_HIERARCY_DEPTH=$MAX_PAYMENT_HIERARCY_DEPTH
- DYNAMO_DB_AWS_ACCESS_KEY_ID=$DYNAMO_DB_AWS_ACCESS_KEY_ID
- DYNAMO_DB_AWS_REGION=$DYNAMO_DB_AWS_REGION
- DYNAMO_DB_AWS_SECRET_ACCESS_KEY=$DYNAMO_DB_AWS_SECRET_ACCESS_KEY
- WEBPAGE_TEXT_WORKFLOW_ID=$WEBPAGE_TEXT_WORKFLOW_ID
- SUPER_URL=$SUPER_URL
- LOCAL_LLAMA=$LOCAL_LLAMA
- QUESTION_AND_ANSWER_WORKFLOW_ID=$QUESTION_AND_ANSWER_WORKFLOW_ID
- AWS_S3_BUCKET_NAME=$AWS_S3_BUCKET_NAME
- GITHUB_REQUEST_TOKEN=$GITHUB_REQUEST_TOKEN
- SINGLE_AUDIO_OR_VIDEO_EPISODE_WORKFLOW_ID=$SINGLE_AUDIO_OR_VIDEO_EPISODE_WORKFLOW_ID
networks:
sphinx-swarm:
external: true