mirror of
https://github.com/runcitadel/core.git
synced 2024-11-11 16:30:38 +00:00
247 lines
7.3 KiB
YAML
247 lines
7.3 KiB
YAML
# SPDX-FileCopyrightText: 2022 Citadel and contributors
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
services:
|
|
tor:
|
|
container_name: tor
|
|
image: lncm/tor:0.4.7.9@sha256:86c2fe9d9099e6376798979110b8b9a3ee5d8adec27289ac4a5ee892514ffe92
|
|
user: toruser
|
|
restart: on-failure
|
|
volumes:
|
|
- ${PWD}/tor/torrc-core:/etc/tor/torrc
|
|
- ${PWD}/tor/data:/var/lib/tor/
|
|
ports:
|
|
- 127.0.0.1:$TOR_PROXY_PORT:$TOR_PROXY_PORT
|
|
networks:
|
|
default:
|
|
ipv4_address: $TOR_PROXY_IP
|
|
app-tor:
|
|
container_name: app-tor
|
|
image: lncm/tor:0.4.7.9@sha256:86c2fe9d9099e6376798979110b8b9a3ee5d8adec27289ac4a5ee892514ffe92
|
|
user: toruser
|
|
restart: on-failure
|
|
volumes:
|
|
- ${PWD}/tor/torrc-apps:/etc/tor/torrc
|
|
- ${PWD}/tor/data:/var/lib/tor/
|
|
networks:
|
|
default:
|
|
ipv4_address: $APPS_TOR_IP
|
|
app-2-tor:
|
|
container_name: app-2-tor
|
|
image: lncm/tor:0.4.7.9@sha256:86c2fe9d9099e6376798979110b8b9a3ee5d8adec27289ac4a5ee892514ffe92
|
|
user: toruser
|
|
restart: on-failure
|
|
volumes:
|
|
- ${PWD}/tor/torrc-apps-2:/etc/tor/torrc
|
|
- ${PWD}/tor/data:/var/lib/tor/
|
|
networks:
|
|
default:
|
|
ipv4_address: $APPS_2_TOR_IP
|
|
app-3-tor:
|
|
container_name: app-3-tor
|
|
image: lncm/tor:0.4.7.9@sha256:86c2fe9d9099e6376798979110b8b9a3ee5d8adec27289ac4a5ee892514ffe92
|
|
user: toruser
|
|
restart: on-failure
|
|
volumes:
|
|
- ${PWD}/tor/torrc-apps-3:/etc/tor/torrc
|
|
- ${PWD}/tor/data:/var/lib/tor/
|
|
networks:
|
|
default:
|
|
ipv4_address: $APPS_3_TOR_IP
|
|
nginx:
|
|
container_name: nginx
|
|
image: nginx:1.21.6@sha256:2834dc507516af02784808c5f48b7cbe38b8ed5d0f4837f16e78d00deb7e7767
|
|
depends_on:
|
|
- dashboard
|
|
volumes:
|
|
- ${PWD}/nginx:/etc/nginx
|
|
restart: on-failure
|
|
stop_grace_period: 30s
|
|
ports:
|
|
- ${NGINX_PORT}:80
|
|
- 433:433
|
|
- ${NGINX_SSL_PORT}:443
|
|
networks:
|
|
default:
|
|
ipv4_address: $NGINX_IP
|
|
bitcoin:
|
|
container_name: bitcoin
|
|
image: ghcr.io/runcitadel/bitcoinknots:main@sha256:5fbee0f6f0d09d42aacc11c373ffe6162210c42ce21e6eba294e547e3ad80219
|
|
depends_on:
|
|
- tor
|
|
volumes:
|
|
- ${PWD}/bitcoin:/data/.bitcoin
|
|
restart: on-failure
|
|
stop_grace_period: 1m
|
|
ports:
|
|
- $BITCOIN_P2P_PORT:$BITCOIN_P2P_PORT
|
|
networks:
|
|
default:
|
|
ipv4_address: $BITCOIN_IP
|
|
lightning:
|
|
container_name: lightning
|
|
image: lightninglabs/lnd:v0.15.1-beta@sha256:b2a5f62806d1a295c4e600e0b99159cbfae1d5caf338db01bccfbc8393838275
|
|
user: 1000:1000
|
|
depends_on:
|
|
- tor
|
|
- bitcoin
|
|
volumes:
|
|
- ${PWD}/lnd:/data/.lnd
|
|
- ${PWD}/walletpassword:/walletpassword
|
|
environment:
|
|
HOME: /data
|
|
restart: on-failure
|
|
stop_grace_period: 5m30s
|
|
ports:
|
|
- 9735:9735
|
|
- $LND_REST_PORT:$LND_REST_PORT
|
|
- $LND_GRPC_PORT:$LND_GRPC_PORT
|
|
networks:
|
|
default:
|
|
ipv4_address: $LND_IP
|
|
dashboard:
|
|
container_name: dashboard
|
|
image: ghcr.io/runcitadel/dashboard:v0.0.17@sha256:4416254a023b3060338529446068b97b2d95834c59119b75bdeae598c5c81d0e
|
|
restart: on-failure
|
|
stop_grace_period: 1m30s
|
|
networks:
|
|
default:
|
|
ipv4_address: $DASHBOARD_IP
|
|
manager:
|
|
container_name: manager
|
|
image: ghcr.io/runcitadel/manager:deno@sha256:fa5bd47fc5a19095a26f1660d8d64fb571d24b476cddf4f6e61ae0e7690caf87
|
|
depends_on:
|
|
- tor
|
|
- redis
|
|
restart: on-failure
|
|
init: true
|
|
stop_grace_period: 5m30s
|
|
volumes:
|
|
- ${PWD}/info.json:/info.json
|
|
- ${PWD}/db:/db
|
|
- ${PWD}/events:/events
|
|
- ${PWD}/apps:/apps
|
|
- ${PWD}/lnd:/lnd:ro
|
|
- ${PWD}/statuses:/statuses
|
|
- ${PWD}/tor/data:/var/lib/tor/
|
|
- jwt-public-key:/jwt-public-key
|
|
- jwt-private-key:/jwt-private-key
|
|
environment:
|
|
USER_PASSWORD_FILE: /db/user.json
|
|
JWT_PUBLIC_KEY_FILE: /jwt-public-key/jwt.pem
|
|
JWT_PRIVATE_KEY_FILE: /jwt-private-key/jwt.key
|
|
JWT_EXPIRATION: '3600'
|
|
DEVICE_HOSTS: ${DEVICE_HOSTS:-"http://citadel.local"}
|
|
DEVICE_HOSTNAME: ${DEVICE_HOSTNAME:-""}
|
|
MIDDLEWARE_API_URL: http://$MIDDLEWARE_IP
|
|
SEED_FILE: /db/citadel-seed/seed
|
|
BITCOIN_P2P_PORT: $BITCOIN_P2P_PORT
|
|
BITCOIN_RPC_PORT: $BITCOIN_RPC_PORT
|
|
BITCOIN_RPC_USER: $BITCOIN_RPC_USER
|
|
BITCOIN_RPC_PASSWORD: $BITCOIN_RPC_PASS
|
|
LND_CERT_FILE: /lnd/tls.cert
|
|
LND_ADMIN_MACAROON_FILE: /lnd/data/chain/bitcoin/${BITCOIN_NETWORK}/admin.macaroon
|
|
GITHUB_REPO: runcitadel/core
|
|
GITHUB_BRANCH: ${UPDATE_CHANNEL:-"stable"}
|
|
VERSION_FILE: /info.json
|
|
UPDATE_LOCK_FILE: /statuses/update-in-progress
|
|
BACKUP_STATUS_FILE: /statuses/backup-status.json
|
|
DEBUG_STATUS_FILE: /statuses/debug-status.json
|
|
TOR_PROXY_IP: ${TOR_PROXY_IP}
|
|
TOR_PROXY_PORT: ${TOR_PROXY_PORT}
|
|
TOR_HIDDEN_SERVICE_DIR: /var/lib/tor
|
|
IS_CITADEL_OS: ${IS_CITADEL_OS:-"true"}
|
|
REDIS_PASSWORD: freedom
|
|
REDIS_IP: $REDIS_IP
|
|
REDIS_PORT: 6379
|
|
UNSAFE_REMOVE_CORS_CHECK: true
|
|
networks:
|
|
default:
|
|
ipv4_address: $MANAGER_IP
|
|
middleware:
|
|
container_name: middleware
|
|
image: ghcr.io/runcitadel/middleware:deno-manager@sha256:ff27301f4059a5b259bb5db79edcff682dfbf84864d24fc7fa49b11d1890e484
|
|
depends_on:
|
|
- bitcoin
|
|
- lightning
|
|
- redis
|
|
command: sh -c "./wait-for-manager.sh $MANAGER_IP && ././start.sh"
|
|
restart: on-failure
|
|
volumes:
|
|
- ${PWD}/lnd:/lnd
|
|
- jwt-public-key:/jwt-public-key
|
|
environment:
|
|
PORT: '3005'
|
|
BITCOIN_HOST: $BITCOIN_IP
|
|
RPC_PORT: $BITCOIN_RPC_PORT
|
|
RPC_USER: $BITCOIN_RPC_USER
|
|
RPC_PASSWORD: $BITCOIN_RPC_PASS
|
|
LND_NETWORK: $BITCOIN_NETWORK
|
|
LND_HOST: ${LND_IP}
|
|
JWT_PUBLIC_KEY_FILE: /jwt-public-key/jwt.pem
|
|
DEVICE_HOSTS: ${DEVICE_HOSTS:-"http://citadel.local"}
|
|
UNSAFE_REMOVE_CORS_CHECK: true
|
|
networks:
|
|
default:
|
|
ipv4_address: $MIDDLEWARE_IP
|
|
neutrino-switcher:
|
|
container_name: neutrino-switcher
|
|
image: lncm/neutrino-switcher:1.0.5@sha256:3ddf58c5599ba22db8414f2694bfeeba086455d4a19b4955b26c3ae5e967d42a
|
|
depends_on:
|
|
- bitcoin
|
|
- lightning
|
|
restart: on-failure
|
|
volumes:
|
|
- ${PWD}/lnd:/lnd
|
|
- ${PWD}/statuses:/statuses
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
environment:
|
|
JSONRPCURL: http://${BITCOIN_IP}:${BITCOIN_RPC_PORT}
|
|
RPCUSER: $BITCOIN_RPC_USER
|
|
RPCPASS: $BITCOIN_RPC_PASS
|
|
LND_CONTAINER_NAME: lightning
|
|
SLEEPTIME: 3600
|
|
networks:
|
|
default:
|
|
ipv4_address: $NEUTRINO_SWITCHER_IP
|
|
electrum:
|
|
container_name: electrum
|
|
image: ghcr.io/runcitadel/electrs:v0.9.6@sha256:cf08513b8aa6f081e42ea92c5903d520db2caedbc20aaccf70f844663bbc8646
|
|
working_dir: /data
|
|
volumes:
|
|
- ${PWD}/bitcoin:/bitcoin:ro
|
|
- ${PWD}/electrs:/data
|
|
restart: on-failure
|
|
stop_grace_period: 5m
|
|
ports:
|
|
- $ELECTRUM_PORT:$ELECTRUM_PORT
|
|
networks:
|
|
default:
|
|
ipv4_address: $ELECTRUM_IP
|
|
redis:
|
|
container_name: redis
|
|
user: 1000:1000
|
|
image: redis:7.0.0-bullseye@sha256:ad0705f2e2344c4b642449e658ef4669753d6eb70228d46267685045bf932303
|
|
working_dir: /data
|
|
volumes:
|
|
- ${PWD}/redis:/data
|
|
command: redis-server --requirepass freedom
|
|
restart: on-failure
|
|
stop_grace_period: 1m
|
|
init: true
|
|
networks:
|
|
default:
|
|
ipv4_address: $REDIS_IP
|
|
|
|
networks:
|
|
default:
|
|
name: citadel_main_network
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: $NETWORK_IP/24
|
|
volumes:
|
|
jwt-public-key: null
|
|
jwt-private-key: null
|