-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
93 lines (90 loc) · 1.92 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
83
84
85
86
87
88
89
90
91
92
93
services:
client:
networks:
- front-tier
- back-tier
build:
context: ./client
dockerfile: ./Dockerfile
volumes:
- ./client:/app
- /app/node_modules
ports: ["8080:8080"]
environment:
- VITE_SERVER_HOST=http://${SERVER_HOST}:${SERVER_LOCAL_PORT}
- NODE_ENV=${NODE_ENV}
develop:
watch:
- action: sync
path: ./src
target: /app/src
- action: rebuild
path: ./package.json
target: /app/package.json
node:
networks:
- front-tier
- back-tier
depends_on:
- client
- db
- bitcoin-core
build:
context: ./server
dockerfile: ./Dockerfile
volumes:
- ./server:/home/node/app
- /home/node/app/node_modules
ports:
- ${SERVER_LOCAL_PORT}:${SERVER_PORT}
develop:
watch:
- action: sync
path: ./src
target: /home/node/app/src
- action: rebuild
path: ./package.json
target: /home/node/app/package.json
env_file: .env
environment:
- DB_HOST=db
- BITCOIN_HOST=bitcoin-core
db:
image: postgres
restart: always
networks:
- back-tier
user: postgres
ports:
- ${DB_LOCAL_PORT}:${DB_PORT}
volumes:
- db:/var/lib/postgres
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
bitcoin-core:
image: ruimarinho/bitcoin-core
networks:
- back-tier
command:
-printtoconsole
-regtest=1
-rest
-rpcallowip=0.0.0.0/0
-rpcbind=0.0.0.0
-rpcport=${BITCOIN_PORT}
-rpcpassword=${BITCOIN_PASSWORD}
-rpcuser=${BITCOIN_USER}
-server
-fallbackfee=0.00001
networks:
front-tier:
back-tier:
volumes:
db: