-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
82 lines (78 loc) · 1.84 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
74
75
76
77
78
79
80
81
82
version: '3.4'
services:
### ORACLE
oracle:
image: ghcr.io/p2pderivatives/oracle:v0.2.0
environment:
P2PDORACLE_DATABASE_HOST: oracle-db
P2PDORACLE_DATABASE_DBPASSWORD: 1234
P2PDORACLE_DATABASE_CONNECTIONPARAMS: 'sslmode=disable'
restart: always
depends_on:
- oracle-db
ports:
- 8080:8080
volumes:
- ./services/oracle/key:/key
- ./services/oracle/config:/config
oracle-db:
image: 'postgres:12.2'
command: |
-c ssl=off
restart: always
ports:
- 5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234
POSTGRES_DB: db
volumes:
- oracle-db-data:/var/lib/postgresql/data/
### SERVER
server:
image: ghcr.io/p2pderivatives/server:v0.0.3
environment:
P2PDSERVER_DATABASE_HOST: server-db
P2PDSERVER_DATABASE_DBPASSWORD: 1234
P2PDSERVER_DATABASE_CONNECTIONPARAMS: 'sslmode=disable'
restart: always
depends_on:
- server-db
ports:
- 8081:8080
volumes:
- ./services/server/config:/config
- ./services/server/scripts:/scripts
server-db:
image: 'postgres:12.2'
command: |
-c ssl=off
restart: always
ports:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=1234
- POSTGRES_DB=db
volumes:
- server-db-data:/var/lib/postgresql/data/
### BITCOIND
bitcoind:
image: ruimarinho/bitcoin-core:0.20.0
command: |
-conf=/config/default.conf
-printtoconsole
-regtest
ports:
# regtest ports
- 18443:18443
- 18444:18444
volumes:
- bitcoind-data:/home/bitcoin/.bitcoin
- ./services/bitcoind/config:/config
- ./services/bitcoind/scripts:/scripts
- ./services/bitcoind/vectors:/vectors
volumes:
oracle-db-data:
server-db-data:
bitcoind-data: