-
Notifications
You must be signed in to change notification settings - Fork 40
/
docker-compose.yml
73 lines (70 loc) · 1.81 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: "3.4"
services:
### BITCOIND
bitcoind:
image: polarlightning/bitcoind:27.0
container_name: bitcoin-node
command: |
-conf=/config/default.conf
-printtoconsole
-regtest
ports:
# regtest ports
- 18443:18443
- 18444:18444
volumes:
- bitcoind-data:/home/bitcoin/.bitcoin
- ./testconfig/config:/config
- ./scripts:/scripts
electrs:
image: ghcr.io/cryptogarageinc/electrs:v0.4.12-bitcoin
command: |
sh -c "electrs -vv --daemon-rpc-addr bitcoind:18443 --daemon-dir /home/bitcoin/.bitcoin --network regtest --http-addr 0.0.0.0:3004"
volumes:
- bitcoind-data:/home/bitcoin/.bitcoin
ports:
- 3004:3004
oracle-server:
image: ghcr.io/p2pderivatives/oracle:v0.2.3
container_name: oracle-server
profiles: [oracle]
command: |
-config /config
-appname p2pdoracle
-e integration
-migrate
environment:
- P2PDORACLE_DATABASE_HOST=oracle-db
- P2PDORACLE_ORACLE_KEYFILE=/key/key.pem
- P2PDORACLE_ORACLE_KEYPASS_FILE=/key/pass.txt
restart: always
depends_on:
- oracle-db
ports:
- 8080:8080
volumes:
- ./testconfig/oracle:/config
- ./testconfig/oracle/certs/oracle:/key
oracle-db:
image: oracledb:latest
build:
context: .
dockerfile: ./testconfig/oracle/oracledb.dockerfile
profiles: [oracle]
command: |
-c log_statement=all
-c ssl=on
-c ssl_cert_file=/certs/db.crt
-c ssl_key_file=/certs/db.key
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=1234
- POSTGRES_DB=db
volumes:
- oracle-db-data:/var/lib/postgresql/data/ # persist data even if container shuts down
volumes:
bitcoind-data:
oracle-db-data: