-
Notifications
You must be signed in to change notification settings - Fork 4
/
superadmin.yml
100 lines (96 loc) · 3.63 KB
/
superadmin.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
# docker-compose -f superadmin.yml up sphinx-swarm-superadmin -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.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
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-superadmin:
image: sphinxlightning/sphinx-swarm-superadmin
container_name: sphinx-swarm-superadmin
networks:
- sphinx-swarm
depends_on:
- load_balancer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/admin/vol:/vol
ports:
- 8000:8000
labels:
- "traefik.enable=true"
- "traefik.http.routers.elements.rule=Host(`app.${HOST}`)"
- "traefik.http.services.elements.loadbalancer.server.port=8000"
- "traefik.http.routers.elements.tls=true"
- "traefik.http.routers.elements.tls.certresolver=myresolver"
- "traefik.http.routers.elements.entrypoints=websecure"
restart: unless-stopped
environment:
- DOCKER_RUN=true
- ROCKET_ADDRESS=0.0.0.0
- ROCKET_PORT=8000
- SUPER_TOKEN=$SUPER_TOKEN
- SECOND_BRAIN_ONLY=$SECOND_BRAIN_ONLY
- AWS_REGION=$AWS_REGION
- SUPER_URL=$SUPER_URL
- STAKWORK_ADD_NODE_TOKEN=$STAKWORK_ADD_NODE_TOKEN
- STAKWORK_RADAR_REQUEST_TOKEN=$STAKWORK_RADAR_REQUEST_TOKEN
- YOUTUBE_API_TOKEN=$YOUTUBE_API_TOKEN
- TWITTER_BEARER=$TWITTER_BEARER
- EXTERNAL_LND_MACAROON=$EXTERNAL_LND_MACAROON
- EXTERNAL_LND_ADDRESS=$EXTERNAL_LND_ADDRESS
- EXTERNAL_LND_CERT=$EXTERNAL_LND_CERT
- JARVIS_FEATURE_FLAG_SCHEMA=$JARVIS_FEATURE_FLAG_SCHEMA
- FEATURE_FLAG_ADD_NODE_KEY=$FEATURE_FLAG_ADD_NODE_KEY
- BACKUP=$BACKUP
- FEATURE_FLAG_TEXT_EMBEDDINGS=$FEATURE_FLAG_TEXT_EMBEDDINGS
- ROUTE53_ZONE_ID=$ROUTE53_ZONE_ID
- AWS_DEVICE_NAME=$AWS_DEVICE_NAME
- AWS_IMAGE_ID=$AWS_IMAGE_ID
- AWS_SECURITY_GROUP_ID=$AWS_SECURITY_GROUP_ID
- AWS_KEY_NAME=$AWS_KEY_NAME
- AWS_SUBNET_ID=$AWS_SUBNET_ID
- SWARM_TAG_VALUE=$SWARM_TAG_VALUE
- SWARM_TAG_KEY=$SWARM_TAG_KEY
- SWARM_UPDATER_PASSWORD=$SWARM_UPDATER_PASSWORD
- EC2_DAILY_LIMIT=$EC2_DAILY_LIMIT
- QUESTION_AND_ANSWER_WORKFLOW_ID=$QUESTION_AND_ANSWER_WORKFLOW_ID
- AWS_S3_BUCKET_NAME=$AWS_S3_BUCKET_NAME
- AWS_USER_ROLE=$AWS_USER_ROLE
- 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