-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.thunderhub.yml
74 lines (64 loc) · 2.02 KB
/
docker-compose.thunderhub.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
version: "2"
volumes:
node_modules:
services:
reverse-proxy:
container_name: proxy
# The official v2 Traefik docker image
image: traefik:v2.2.1
# Enables the web UI and tells Traefik to listen to docker
# command: --configFile=/home/ec2-user/sphinx-deploy/traefik.yaml
command:
# - "--log.level=DEBUG"
- "--logLevel=DEBUG"
- "--traefikLog.filePath=/var/log/traefik.log"
- "--traefikLog.format=json"
- "--accessLog.filePath=/var/log/access.log"
- "--accessLog.format=json"
ports:
# The HTTP port
# - 80:80
# The Web UI (enabled by --api.insecure=true)
- 8080:8080
# entrypoints
- 443:443
- 5000:5000
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- ./docker/traefik.yaml:/etc/traefik/traefik.yaml
- ./docker/letsencrypt:/letsencrypt
environment:
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- AWS_REGION=$AWS_REGION
logging:
options:
max-size: 10m
ulimits:
nproc: 65535
nofile:
soft: 1000000
hard: 1000000
thunderhub:
container_name: thunderhub
image: apotdevin/thunderhub:v0.12.19
volumes:
- .lnd/:/relay/.lnd
environment:
- COOKIE_PATH=/relay/.lnd/.cookie
- SSO_SERVER_URL=127.0.0.1:10009
- SSO_CERT_PATH=/relay/.lnd/tls.cert
- SSO_MACAROON_PATH=/relay/.lnd/data/chain/bitcoin/mainnet
- ACCOUNT_CONFIG_PATH=/relay/.lnd/thubConfig.yaml
- PUBLIC_URL=$NODE_DOMAIN
- SSL_PORT=80
labels:
- "traefik.enable=true"
- "traefik.http.routers.thunderhub.tls=true"
- "traefik.http.routers.thunderhub.rule=Host(`$NODE_DOMAIN`)"
- "traefik.http.services.thunderhub.loadbalancer.server.port=3000"
- "traefik.http.routers.thunderhub.tls.certresolver=myresolver"
- "traefik.http.routers.thunderhub.entrypoints=websecure"
depends_on:
- reverse-proxy