-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
55 lines (53 loc) · 2.27 KB
/
docker-compose.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
services:
traefik:
platform: linux/amd64
# ALT: platform: linux/arm64
image: "traefik:latest"
container_name: "traefik"
restart: unless-stopped
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.websecure.address=:443"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entrypoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
# CHANGEME change `example.com` and email here to match your domain:
- "--certificatesresolvers.selfhostedservices.acme.tlschallenge=true"
- "--certificatesresolvers.selfhostedservices.acme.email=example@example.com"
- "--certificatesresolvers.selfhostedservices.acme.storage=/letsencrypt/acme.json"
ports:
# NOTE for local development, changing `published:` to 8000 and 4430 is easier
- target: 80
published: 80
mode: host
- target: 443
published: 443
mode: host
volumes:
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
phoenixd-lnurl:
platform: linux/amd64
# ALT: platform: linux/arm64
container_name: phoenixd-lnurl
image: ghcr.io/angusp/phoenixd-lnurl:latest
environment:
# CHANGEME See phoenixd-lnurl.env.example for the full list
- USERNAME=satoshi
- PHOENIXD_URL=http://_:<phoenixd http password from phoenixd-data volume>@172.17.0.1:9740
- LNURL_HOSTNAME=example.com
labels:
# CHANGEME set `Host(...)` to match your domain, or to `localhost` for testing:
- "traefik.enable=true"
- "traefik.http.routers.phoenixd-lnurl.rule=Host(`example.com`) && Path(`/lnurl`) || Host(`example.com`) && PathPrefix(`/lnurlp`) || Host(`example.com`) && PathPrefix(`/.well-known/lnurlp`)"
- "traefik.http.services.phoenixd-lnurl.loadbalancer.server.port=8000"
- "traefik.http.routers.phoenixd-lnurl.entrypoints=websecure"
- "traefik.http.routers.phoenixd-lnurl.tls.certresolver=selfhostedservices"
phoenixd:
platform: linux/amd64
image: ghcr.io/sethforprivacy/phoenixd:latest
container_name: phoenixd
volumes:
- ./phoenixd-data:/phoenix/.phoenix
command: --agree-to-terms-of-service --http-bind-ip 0.0.0.0