Fix unused `Result` in tests
[rapid-gossip-sync-server] / docker-compose.yml
1 version: "3"
2
3 services:
4   rgs_server:
5     build:
6       context: '$PWD'
7       dockerfile: '$PWD/docker/Dockerfile.rgs'
8     volumes:
9       - '$PWD:/usr/src/app:cached'
10     links:
11       - postgres
12       - bitcoin-core
13     depends_on:
14       - postgres
15     environment:
16       - RAPID_GOSSIP_SYNC_SERVER_DB_HOST=postgres
17       - RAPID_GOSSIP_SYNC_SERVER_DB_USER=lightning-rgs
18       - RAPID_GOSSIP_SYNC_SERVER_DB_PASSWORD=docker
19       - RAPID_GOSSIP_SYNC_SERVER_DB_NAME=ln_graph_sync
20       - BITCOIN_REST_DOMAIN=bitcoin-core
21       - BITCOIN_REST_PORT=8332
22       - BITCOIN_REST_PATH=/rest/
23     command: 'cargo run'
24
25   postgres:
26     image: 'postgres:12-alpine'
27     ports:
28       - 5432:5432
29     volumes:
30       - postgres:/var/lib/postgresql/data
31     environment:
32       - POSTGRES_USER=lightning-rgs
33       - POSTGRES_PASSWORD=docker
34       - POSTGRES_DB=ln_graph_sync
35
36   bitcoin-core:
37     container_name: bitcoin-core
38     image: ruimarinho/bitcoin-core:alpine
39     restart: always
40     ports:
41       - "0.0.0.0:8332:8332"
42       - "0.0.0.0:8333:8333"
43     volumes:
44       - /etc/localtime:/etc/localtime:ro
45       - .bitcoin:/home/bitcoin/.bitcoin
46     command:
47       - "-printtoconsole"
48       - "-rpcallowip=0.0.0.0/0"
49       - "-rpcbind=0.0.0.0"
50       - "-rpcuser=vault"
51       - "-rpcpassword=vault"
52       - "-rpcport=8332"
53       - "-rest"
54
55   # Comment Out Below for Testnet. You'll also need to change BITCOIN_REST_PORT to 18332
56   # bitcoin-core:
57   #   container_name: bitcoin-core
58   #   image: ruimarinho/bitcoin-core:alpine
59   #   restart: always
60   #   ports:
61   #     - "0.0.0.0:18332:18332"
62   #     - "0.0.0.0:18332:18333"
63   #   volumes:
64   #     - /etc/localtime:/etc/localtime:ro
65   #     - .bitcoin:/home/bitcoin/.bitcoin
66   #   command:
67   #     - "-printtoconsole"
68   #     - "-testnet"
69   #     - "-rpcallowip=0.0.0.0/0"
70   #     - "-rpcbind=0.0.0.0"
71   #     - "-rpcuser=vault"
72   #     - "-rpcpassword=vault"
73   #     - "-rpcport=18332"
74   #     - "-rest"
75
76 volumes:
77   postgres: null