2021-10-22 15:22:10 +00:00
|
|
|
services:
|
|
|
|
tor:
|
|
|
|
container_name: tor
|
2023-02-23 20:37:33 +00:00
|
|
|
image: ghcr.io/runcitadel/tor-latest:main@sha256:761948a86f8367238eb61f991cf87094b12a8a772be0eabec00d66164d13075f
|
2021-10-22 15:22:10 +00:00
|
|
|
user: toruser
|
|
|
|
restart: on-failure
|
|
|
|
volumes:
|
|
|
|
- ${PWD}/tor/torrc-core:/etc/tor/torrc
|
|
|
|
- ${PWD}/tor/data:/var/lib/tor/
|
|
|
|
ports:
|
2022-11-04 17:17:35 +00:00
|
|
|
- 127.0.0.1:$TOR_PROXY_PORT:$TOR_PROXY_PORT
|
2021-10-22 15:22:10 +00:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipv4_address: $TOR_PROXY_IP
|
2023-09-27 20:07:45 +00:00
|
|
|
ipv6_address: $TOR_PROXY_IP6
|
2023-02-23 20:37:33 +00:00
|
|
|
extra_hosts:
|
|
|
|
- host.docker.internal:host-gateway
|
2022-01-19 09:00:11 +00:00
|
|
|
app-tor:
|
|
|
|
container_name: app-tor
|
2023-02-23 20:37:33 +00:00
|
|
|
image: ghcr.io/runcitadel/tor-latest:main@sha256:761948a86f8367238eb61f991cf87094b12a8a772be0eabec00d66164d13075f
|
2021-10-22 15:22:10 +00:00
|
|
|
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
|
2023-09-27 20:07:45 +00:00
|
|
|
ipv6_address: $APPS_TOR_IP6
|
2023-02-23 20:37:33 +00:00
|
|
|
extra_hosts:
|
|
|
|
- host.docker.internal:host-gateway
|
2022-01-19 09:00:11 +00:00
|
|
|
app-2-tor:
|
|
|
|
container_name: app-2-tor
|
2023-02-23 20:37:33 +00:00
|
|
|
image: ghcr.io/runcitadel/tor-latest:main@sha256:761948a86f8367238eb61f991cf87094b12a8a772be0eabec00d66164d13075f
|
2021-10-22 15:22:10 +00:00
|
|
|
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
|
2023-09-27 20:07:45 +00:00
|
|
|
ipv6_address: $APPS_2_TOR_IP6
|
2023-02-23 20:37:33 +00:00
|
|
|
extra_hosts:
|
|
|
|
- host.docker.internal:host-gateway
|
2022-01-19 09:00:11 +00:00
|
|
|
app-3-tor:
|
|
|
|
container_name: app-3-tor
|
2023-02-23 20:37:33 +00:00
|
|
|
image: ghcr.io/runcitadel/tor-latest:main@sha256:761948a86f8367238eb61f991cf87094b12a8a772be0eabec00d66164d13075f
|
2021-10-22 15:22:10 +00:00
|
|
|
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
|
2023-09-27 20:07:45 +00:00
|
|
|
ipv6_address: $APPS_3_TOR_IP6
|
2023-02-23 20:37:33 +00:00
|
|
|
extra_hosts:
|
|
|
|
- host.docker.internal:host-gateway
|
|
|
|
caddy:
|
|
|
|
container_name: caddy
|
|
|
|
image: ghcr.io/runcitadel/caddy:main@sha256:a64ed99ad821ab53119c5e314aab47b37406c5d6caf1ec0bcd65c8da981823d8
|
2021-10-22 15:22:10 +00:00
|
|
|
volumes:
|
2023-02-23 20:37:33 +00:00
|
|
|
- ${PWD}/caddy/data:/data
|
|
|
|
- ${PWD}/caddy/Caddyfile:/etc/caddy/Caddyfile
|
2021-10-22 15:22:10 +00:00
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 30s
|
2023-02-23 20:37:33 +00:00
|
|
|
network_mode: host
|
2021-10-22 15:22:10 +00:00
|
|
|
bitcoin:
|
|
|
|
container_name: bitcoin
|
2023-06-02 07:50:43 +00:00
|
|
|
image: lncm/bitcoind:v25.0@sha256:fad11d4874f1c2dc4373f6fea913bf95e0f0491f377b9a0930f488565e6266f0
|
2021-10-22 15:22:10 +00:00
|
|
|
depends_on:
|
|
|
|
- tor
|
|
|
|
volumes:
|
|
|
|
- ${PWD}/bitcoin:/data/.bitcoin
|
|
|
|
restart: on-failure
|
2021-12-03 19:57:35 +00:00
|
|
|
stop_grace_period: 1m
|
2021-10-22 15:22:10 +00:00
|
|
|
ports:
|
|
|
|
- $BITCOIN_P2P_PORT:$BITCOIN_P2P_PORT
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipv4_address: $BITCOIN_IP
|
2023-09-27 20:07:45 +00:00
|
|
|
ipv6_address: $BITCOIN_IP6
|
2021-10-22 15:22:10 +00:00
|
|
|
dashboard:
|
2022-10-26 08:28:31 +00:00
|
|
|
container_name: dashboard
|
2023-09-27 20:19:39 +00:00
|
|
|
image: harbor.nirvati.org/citadel/dashboard:latest@sha256:7f7e6953036c25c3a09d89c566c36965713c559fbd920676336cebff75009870
|
2021-10-22 15:22:10 +00:00
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 1m30s
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipv4_address: $DASHBOARD_IP
|
2023-09-27 20:07:45 +00:00
|
|
|
ipv6_address: $DASHBOARD_IP6
|
2021-10-22 15:22:10 +00:00
|
|
|
manager:
|
|
|
|
container_name: manager
|
2023-09-27 20:19:39 +00:00
|
|
|
image: harbor.nirvati.org/citadel/api:latest@sha256:bf500e4e518be3fc28502151669aec976c95469201dca003f0068118ebb902f5
|
2021-10-22 15:22:10 +00:00
|
|
|
depends_on:
|
|
|
|
- tor
|
|
|
|
restart: on-failure
|
|
|
|
init: true
|
|
|
|
stop_grace_period: 5m30s
|
|
|
|
volumes:
|
|
|
|
- ${PWD}/info.json:/info.json
|
|
|
|
- ${PWD}/db:/db
|
2023-03-26 16:50:01 +00:00
|
|
|
- ${PWD}/events:/events
|
2021-10-22 15:22:10 +00:00
|
|
|
- ${PWD}/apps:/apps
|
|
|
|
- ${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
|
2023-02-23 20:37:33 +00:00
|
|
|
MIDDLEWARE_API_PORT: 3000
|
2021-10-22 15:22:10 +00:00
|
|
|
SEED_FILE: /db/citadel-seed/seed
|
2022-11-11 16:07:33 +00:00
|
|
|
BITCOIN_HOST: $BITCOIN_IP
|
2021-10-22 15:22:10 +00:00
|
|
|
BITCOIN_P2P_PORT: $BITCOIN_P2P_PORT
|
|
|
|
BITCOIN_RPC_PORT: $BITCOIN_RPC_PORT
|
|
|
|
BITCOIN_RPC_USER: $BITCOIN_RPC_USER
|
|
|
|
BITCOIN_RPC_PASSWORD: $BITCOIN_RPC_PASS
|
|
|
|
GITHUB_REPO: runcitadel/core
|
2022-02-28 21:16:03 +00:00
|
|
|
GITHUB_BRANCH: ${UPDATE_CHANNEL:-"stable"}
|
2021-10-22 15:22:10 +00:00
|
|
|
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
|
2022-01-02 09:10:57 +00:00
|
|
|
IS_CITADEL_OS: ${IS_CITADEL_OS:-"true"}
|
2022-11-01 13:33:14 +00:00
|
|
|
I2P_PASSWORD: $I2P_PASSWORD
|
|
|
|
I2P_USERNAME: i2pd
|
2022-11-07 18:43:51 +00:00
|
|
|
ELECTRUM_HOST: $APP_ELECTRUM_IP
|
|
|
|
ELECTRUM_PORT: 50001
|
2023-03-26 16:50:01 +00:00
|
|
|
KAREN_SOCKET: /events/karen.socket
|
2023-02-23 20:37:33 +00:00
|
|
|
IP_ADDR: $DEVICE_IP
|
2021-10-22 15:22:10 +00:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipv4_address: $MANAGER_IP
|
2023-09-27 20:07:45 +00:00
|
|
|
ipv6_address: $MANAGER_IP6
|
2022-10-28 18:17:17 +00:00
|
|
|
i2p:
|
|
|
|
container_name: i2p
|
2022-09-05 19:01:12 +00:00
|
|
|
user: 1000:1000
|
2022-10-28 18:17:17 +00:00
|
|
|
image: purplei2p/i2pd:latest@sha256:d8e1a28a8428ed9bda15bbf773e355cf46c89c652dcaa6cd9131606ee308ae47
|
2021-11-06 21:10:06 +00:00
|
|
|
working_dir: /data
|
|
|
|
volumes:
|
2022-10-28 18:17:17 +00:00
|
|
|
- ${PWD}/i2p:/home/i2pd/data
|
2021-11-07 08:10:31 +00:00
|
|
|
restart: on-failure
|
2021-11-12 20:33:11 +00:00
|
|
|
stop_grace_period: 1m
|
2021-11-06 21:10:06 +00:00
|
|
|
init: true
|
|
|
|
networks:
|
|
|
|
default:
|
2022-10-28 18:17:17 +00:00
|
|
|
ipv4_address: $I2P_IP
|
2023-09-27 20:07:45 +00:00
|
|
|
ipv6_address: $I2P_IP6
|
2021-10-22 15:22:10 +00:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: citadel_main_network
|
2023-09-27 20:07:45 +00:00
|
|
|
enable_ipv6: true
|
2021-10-22 15:22:10 +00:00
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: $NETWORK_IP/24
|
2023-09-27 20:07:45 +00:00
|
|
|
gateway: $GATEWAY_IP
|
|
|
|
- subnet: $NETWORK_IP6/96
|
|
|
|
gateway: $GATEWAY_IP6
|
2021-10-22 15:22:10 +00:00
|
|
|
volumes:
|
2023-02-23 20:37:33 +00:00
|
|
|
jwt-public-key:
|
|
|
|
name: citadel-jwt-public-key
|
|
|
|
jwt-private-key:
|
|
|
|
name: citadel-jwt-private-key
|