-
Notifications
You must be signed in to change notification settings - Fork 4
/
sphinx.yml
83 lines (79 loc) · 2.78 KB
/
sphinx.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
# docker-compose -f sphinx.yml up -d
version: "2"
services:
reverse-proxy:
image: traefik:v2.9
container_name: traefik.sphinx
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
swarm.sphinx:
image: sphinxlightning/sphinx-swarm
container_name: swarm.sphinx
networks:
- sphinx-swarm
depends_on:
- reverse-proxy
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:
- 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=8000
- SPHINXV1=true
- TESTING_ONLY_ADD_TO_SENDER=$TESTING_ONLY_ADD_TO_SENDER # mixer testing
- SWARM_UPDATER_PASSWORD=$SWARM_UPDATER_PASSWORD
- TRIBES_HOST=$TRIBES_HOST
- SUPER_TOKEN=$SUPER_TOKEN
- SUPER_URL=$SUPER_URL
- 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