2020-03-01 00:15:24 -08:00
|
|
|
version: '3'
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
|
|
btcd:
|
|
|
|
|
image: btcd
|
2020-07-02 22:45:12 -07:00
|
|
|
container_name: test_btcd
|
2020-03-01 00:15:24 -08:00
|
|
|
build:
|
|
|
|
|
context: ../
|
|
|
|
|
dockerfile: docker/btcd/Dockerfile
|
|
|
|
|
volumes:
|
2020-07-02 22:28:26 -07:00
|
|
|
- test_shared:/rpc
|
|
|
|
|
- test_bitcoin:/data
|
2020-03-01 00:15:24 -08:00
|
|
|
environment:
|
2020-07-21 20:48:52 -07:00
|
|
|
- NETWORK=simnet
|
2020-03-01 00:15:24 -08:00
|
|
|
- MINING_ADDRESS
|
|
|
|
|
entrypoint: ["./start-btcd.sh"]
|
|
|
|
|
|
|
|
|
|
btcctl:
|
|
|
|
|
image: btcd
|
2020-07-02 22:45:12 -07:00
|
|
|
container_name: test_btcctl
|
2020-03-01 00:15:24 -08:00
|
|
|
build:
|
|
|
|
|
context: ../
|
|
|
|
|
dockerfile: docker/btcd/Dockerfile
|
|
|
|
|
volumes:
|
2020-07-02 22:28:26 -07:00
|
|
|
- test_shared:/rpc
|
|
|
|
|
- test_bitcoin:/data
|
2020-03-01 00:15:24 -08:00
|
|
|
environment:
|
2020-07-21 20:48:52 -07:00
|
|
|
- NETWORK=simnet
|
|
|
|
|
- RPCHOST=btcd
|
2020-03-01 00:15:24 -08:00
|
|
|
- MINING_ADDRESS
|
|
|
|
|
links:
|
2020-07-21 20:48:52 -07:00
|
|
|
- "btcd:btcd"
|
2020-03-01 00:15:24 -08:00
|
|
|
entrypoint: ["./start-btcctl.sh"]
|
|
|
|
|
|
2021-12-13 11:36:25 -08:00
|
|
|
tor-node:
|
|
|
|
|
image: osminogin/tor-simple
|
|
|
|
|
container_name: test_tor-node
|
2021-10-04 18:33:16 -07:00
|
|
|
restart: always
|
2021-12-13 11:36:25 -08:00
|
|
|
expose:
|
|
|
|
|
- "9051"
|
|
|
|
|
volumes:
|
|
|
|
|
- ../torrc:/etc/tor/torrc:ro
|
|
|
|
|
- test_tor-dir:/var/lib/tor
|
2021-10-04 18:33:16 -07:00
|
|
|
|
2020-07-02 22:28:26 -07:00
|
|
|
lnd_client:
|
2020-03-01 00:15:24 -08:00
|
|
|
image: lnd
|
2020-07-02 22:28:26 -07:00
|
|
|
container_name: test_lnd_client
|
2020-03-01 00:15:24 -08:00
|
|
|
build:
|
|
|
|
|
context: ../
|
|
|
|
|
dockerfile: docker/lnd/Dockerfile
|
|
|
|
|
environment:
|
2020-07-21 20:48:52 -07:00
|
|
|
- NETWORK=simnet
|
|
|
|
|
- RPCHOST=btcd
|
2021-10-04 18:33:16 -07:00
|
|
|
- TARGETHOST=lnd_client
|
2020-03-01 00:15:24 -08:00
|
|
|
volumes:
|
2020-07-02 22:28:26 -07:00
|
|
|
- test_shared:/rpc
|
|
|
|
|
- test_lnd_client_dir:/root/.lnd
|
2021-12-13 11:36:25 -08:00
|
|
|
- test_tor-dir:/var/lib/tor
|
2020-03-01 00:15:24 -08:00
|
|
|
links:
|
2020-07-21 20:48:52 -07:00
|
|
|
- "btcd:btcd"
|
2020-09-21 01:00:48 -07:00
|
|
|
sysctls:
|
|
|
|
|
- net.ipv6.conf.all.disable_ipv6=0
|
2020-03-01 00:15:24 -08:00
|
|
|
entrypoint: ["./start-lnd.sh"]
|
|
|
|
|
|
2020-07-02 22:28:26 -07:00
|
|
|
lnd_server:
|
2020-06-03 02:59:56 -07:00
|
|
|
image: lnd
|
2020-07-02 22:28:26 -07:00
|
|
|
container_name: test_lnd_server
|
2020-06-03 02:59:56 -07:00
|
|
|
build:
|
|
|
|
|
context: ../
|
|
|
|
|
dockerfile: docker/lnd/Dockerfile
|
|
|
|
|
environment:
|
2020-07-21 20:48:52 -07:00
|
|
|
- NETWORK=simnet
|
|
|
|
|
- RPCHOST=btcd
|
2021-10-04 18:33:16 -07:00
|
|
|
- TARGETHOST=lnd_server
|
2020-06-03 02:59:56 -07:00
|
|
|
volumes:
|
2020-07-02 22:28:26 -07:00
|
|
|
- test_shared:/rpc
|
|
|
|
|
- test_lnd_server_dir:/root/.lnd
|
2021-12-13 11:36:25 -08:00
|
|
|
- test_tor-dir:/var/lib/tor
|
2020-06-03 02:59:56 -07:00
|
|
|
links:
|
|
|
|
|
- "btcd:blockchain"
|
2020-09-21 01:00:48 -07:00
|
|
|
sysctls:
|
|
|
|
|
- net.ipv6.conf.all.disable_ipv6=0
|
2020-06-03 02:59:56 -07:00
|
|
|
entrypoint: ["./start-lnd.sh"]
|
|
|
|
|
|
2021-01-08 00:48:16 -08:00
|
|
|
squeaknode_db:
|
|
|
|
|
image: postgres
|
|
|
|
|
container_name: test_squeaknode_db
|
|
|
|
|
environment:
|
|
|
|
|
- POSTGRES_DB=postgres
|
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
|
volumes:
|
|
|
|
|
- ../createdb.sql:/docker-entrypoint-initdb.d/init.sql
|
|
|
|
|
- squeaknode_pgdata:/var/lib/postgresql
|
|
|
|
|
|
2021-01-10 09:31:41 -08:00
|
|
|
squeaknode_other_db:
|
|
|
|
|
image: postgres
|
|
|
|
|
container_name: test_squeaknode_other_db
|
|
|
|
|
environment:
|
|
|
|
|
- POSTGRES_DB=postgres
|
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
|
volumes:
|
|
|
|
|
- ../createdb.sql:/docker-entrypoint-initdb.d/init.sql
|
|
|
|
|
- squeaknode_other_pgdata:/var/lib/postgresql
|
|
|
|
|
|
2020-11-04 23:35:32 -05:00
|
|
|
squeaknode:
|
|
|
|
|
image: squeaknode
|
|
|
|
|
container_name: test_squeaknode
|
2020-03-01 00:15:24 -08:00
|
|
|
build:
|
|
|
|
|
context: ../
|
2020-12-30 16:46:48 -08:00
|
|
|
dockerfile: Dockerfile
|
2020-12-31 00:05:20 -08:00
|
|
|
depends_on:
|
|
|
|
|
- "lnd_server"
|
2021-01-08 00:48:16 -08:00
|
|
|
- "squeaknode_db"
|
|
|
|
|
environment:
|
|
|
|
|
- SQUEAKNODE_DB_CONNECTION_STRING=postgresql://postgres:postgres@squeaknode_db/squeaknode
|
2020-03-01 00:15:24 -08:00
|
|
|
volumes:
|
2020-07-18 17:19:43 -07:00
|
|
|
- test_shared:/rpc
|
2020-07-02 22:28:26 -07:00
|
|
|
- test_lnd_server_dir:/root/.lnd
|
2020-12-27 04:59:59 -08:00
|
|
|
- ./config.ini:/config.ini
|
2020-03-01 00:15:24 -08:00
|
|
|
links:
|
2020-07-18 17:19:43 -07:00
|
|
|
- "btcd:btcd"
|
2020-07-02 22:28:26 -07:00
|
|
|
- "lnd_server:lnd"
|
2021-01-08 00:48:16 -08:00
|
|
|
- "squeaknode_db:squeaknode_db"
|
2020-10-18 00:27:49 -04:00
|
|
|
sysctls:
|
|
|
|
|
- net.ipv6.conf.all.disable_ipv6=0
|
2022-04-25 16:32:31 -07:00
|
|
|
entrypoint: ["./entrypoint.sh"]
|
2020-10-18 00:27:49 -04:00
|
|
|
|
2020-11-04 23:35:32 -05:00
|
|
|
squeaknode_other:
|
|
|
|
|
image: squeaknode
|
|
|
|
|
container_name: test_squeaknode_other
|
2020-10-18 00:27:49 -04:00
|
|
|
build:
|
|
|
|
|
context: ../
|
2020-12-30 16:46:48 -08:00
|
|
|
dockerfile: Dockerfile
|
2021-01-10 09:31:41 -08:00
|
|
|
environment:
|
|
|
|
|
- SQUEAKNODE_DB_CONNECTION_STRING=postgresql://postgres:postgres@squeaknode_other_db/squeaknode
|
2020-10-18 00:27:49 -04:00
|
|
|
volumes:
|
|
|
|
|
- test_shared:/rpc
|
|
|
|
|
- test_lnd_client_dir:/root/.lnd
|
2020-12-27 04:59:59 -08:00
|
|
|
- ./config.ini:/config.ini
|
2020-10-18 00:27:49 -04:00
|
|
|
links:
|
|
|
|
|
- "btcd:btcd"
|
|
|
|
|
- "lnd_client:lnd"
|
2021-01-10 09:31:41 -08:00
|
|
|
- "squeaknode_other_db:squeaknode_other_db"
|
2020-03-01 00:15:24 -08:00
|
|
|
sysctls:
|
|
|
|
|
- net.ipv6.conf.all.disable_ipv6=0
|
2022-04-25 16:32:31 -07:00
|
|
|
entrypoint: ["./entrypoint.sh"]
|
2020-03-01 00:15:24 -08:00
|
|
|
|
|
|
|
|
test:
|
|
|
|
|
image: test
|
|
|
|
|
container_name: test
|
|
|
|
|
build:
|
|
|
|
|
context: ../
|
|
|
|
|
dockerfile: docker/test/Dockerfile
|
2020-12-31 00:05:20 -08:00
|
|
|
depends_on:
|
|
|
|
|
- "lnd_client"
|
2020-06-04 15:36:50 -07:00
|
|
|
volumes:
|
2020-07-02 22:28:26 -07:00
|
|
|
- test_shared:/rpc
|
|
|
|
|
- test_lnd_client_dir:/root/.lnd
|
2020-03-01 00:15:24 -08:00
|
|
|
links:
|
2020-07-02 22:28:26 -07:00
|
|
|
- "lnd_client:lnd"
|
2020-03-01 00:15:24 -08:00
|
|
|
command: tail -f /dev/null
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
# btcctl and lnd containers.
|
2020-07-02 22:28:26 -07:00
|
|
|
test_shared:
|
2020-03-01 00:15:24 -08:00
|
|
|
driver: local
|
|
|
|
|
|
2020-07-02 22:28:26 -07:00
|
|
|
# test_bitcoin volume is needed for maintaining blockchain persistence
|
2020-03-01 00:15:24 -08:00
|
|
|
# during btcd container recreation.
|
2020-07-02 22:28:26 -07:00
|
|
|
test_bitcoin:
|
2020-03-01 00:15:24 -08:00
|
|
|
driver: local
|
|
|
|
|
|
|
|
|
|
# lnd_dir volume is needed for sharing tht tls certificate
|
2020-07-02 22:28:26 -07:00
|
|
|
test_lnd_client_dir:
|
2020-03-01 00:15:24 -08:00
|
|
|
driver: local
|
2020-07-02 22:28:26 -07:00
|
|
|
test_lnd_server_dir:
|
2020-06-03 02:59:56 -07:00
|
|
|
driver: local
|
2021-01-08 00:48:16 -08:00
|
|
|
|
|
|
|
|
# postgres db data
|
|
|
|
|
squeaknode_pgdata:
|
|
|
|
|
driver: local
|
2021-01-10 09:31:41 -08:00
|
|
|
squeaknode_other_pgdata:
|
|
|
|
|
driver: local
|
2021-12-13 11:36:25 -08:00
|
|
|
|
|
|
|
|
# tor node data
|
|
|
|
|
test_tor-dir:
|
|
|
|
|
driver: local
|