forked from FinChippay/Finchippay-Solution
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
96 lines (88 loc) · 2.27 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
96 lines (88 loc) · 2.27 KB
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
94
95
96
version: '3.8'
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- NODE_ENV=development
- REACT_APP_BACKEND_URL=http://backend:4000
depends_on:
- backend
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
ports:
- "4000:4000"
volumes:
- ./backend:/app
- /app/node_modules
environment:
- NODE_ENV=development
- DATABASE_URL=postgresql://user:password@db:5432/finchippay
- STELLAR_NETWORK=testnet
- STELLAR_HORIZON_URL=http://stellar-horizon:8000
depends_on:
- db
- stellar-horizon
db:
image: postgres:13
ports:
- "5432:5432"
environment:
- POSTGRES_DB=finchippay
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
volumes:
- db_data:/var/lib/postgresql/data
stellar-horizon:
image: stellar/stellar-horizon:latest
command: serve
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgresql://user:password@horizon-db:5432/horizon
- STELLAR_NETWORK_PASSPHRASE=Test SDF Network ; September 2015
- STELLAR_CORE_URL=http://stellar-core:11626
- CAPTIVE_CORE_CONFIG_PATH=/etc/stellar/stellar-core.cfg
depends_on:
- stellar-core
- horizon-db
horizon-db:
image: postgres:13
environment:
- POSTGRES_DB=horizon
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
volumes:
- horizon_db_data:/var/lib/postgresql/data
stellar-core:
image: stellar/stellar-core:latest
command: new-db && new-hist && catchup complete && serve
environment:
- POSTGRES_URL=postgresql://user:password@core-db:5432/core
- STELLAR_NETWORK_PASSPHRASE=Test SDF Network ; September 2015
- STELLAR_CORE_PEER_PORT=11625
- STELLAR_CORE_HTTP_PORT=11626
volumes:
- ./stellar-core.cfg:/etc/stellar/stellar-core.cfg
depends_on:
- core-db
core-db:
image: postgres:13
environment:
- POSTGRES_DB=core
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
volumes:
- core_db_data:/var/lib/postgresql/data
volumes:
db_data:
horizon_db_data:
core_db_data: