forked from Stellar-Fluid/fluid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
127 lines (121 loc) · 3.6 KB
/
docker-compose.yml
File metadata and controls
127 lines (121 loc) · 3.6 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: "3.9"
services:
# Stellar Quickstart — isolated local network for sandbox testing
# Exposes Horizon on :8000 and Friendbot on :8000/friendbot
stellar-quickstart:
image: stellar/quickstart:latest
container_name: fluid-stellar-quickstart
command: ["--standalone", "--enable-soroban-rpc"]
ports:
- "8000:8000"
environment:
NETWORK: standalone
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8000/health || exit 1"]
interval: 10s
timeout: 5s
retries: 12
start_period: 30s
networks:
- fluid-network
postgres:
image: postgres:15-alpine
container_name: fluid-postgres
environment:
POSTGRES_USER: "${POSTGRES_USER:-fluid}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-fluid_pass}"
POSTGRES_DB: "${POSTGRES_DB:-fluid_db}"
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U ${POSTGRES_USER:-fluid} -d ${POSTGRES_DB:-fluid_db}",
]
interval: 5s
timeout: 5s
retries: 5
networks:
- fluid-network
redis:
image: redis:7-alpine
container_name: fluid-redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
networks:
- fluid-network
rust-engine:
build:
context: ./fluid-server
dockerfile: Dockerfile
container_name: fluid-rust-engine
environment:
DATABASE_URL: "postgres://${POSTGRES_USER:-fluid}:${POSTGRES_PASSWORD:-fluid_pass}@postgres:5432/${POSTGRES_DB:-fluid_db}"
FLUID_FEE_PAYER_SECRET: "${FLUID_FEE_PAYER_SECRET}"
STELLAR_HORIZON_URL: "${STELLAR_HORIZON_URL:-https://horizon-testnet.stellar.org}"
STELLAR_NETWORK_PASSPHRASE: "${STELLAR_NETWORK_PASSPHRASE:-Test SDF Network ; September 2015}"
PORT: "3000"
FLUID_ALLOWED_ORIGINS: "*"
ports:
- "3000:3000"
depends_on:
postgres:
condition: service_healthy
networks:
- fluid-network
node-api:
build:
context: ./server
dockerfile: Dockerfile
container_name: fluid-node-api
environment:
PORT: "3001"
REDIS_URL: "redis://redis:6379"
DATABASE_URL: "postgres://${POSTGRES_USER:-fluid}:${POSTGRES_PASSWORD:-fluid_pass}@postgres:5432/${POSTGRES_DB:-fluid_db}"
FLUID_FEE_PAYER_SECRET: "${FLUID_FEE_PAYER_SECRET}"
STELLAR_HORIZON_URL: "${STELLAR_HORIZON_URL:-https://horizon-testnet.stellar.org}"
STELLAR_NETWORK_PASSPHRASE: "${STELLAR_NETWORK_PASSPHRASE:-Test SDF Network ; September 2015}"
FLUID_ALLOWED_ORIGINS: "*"
SANDBOX_HORIZON_URL: "http://stellar-quickstart:8000"
ports:
- "3001:3001"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
stellar-quickstart:
condition: service_healthy
networks:
- fluid-network
dashboard:
build:
context: ./admin-dashboard
dockerfile: Dockerfile
container_name: fluid-dashboard
environment:
PORT: "3002"
AUTH_SECRET: "${AUTH_SECRET:-random_secret_for_dev_only}"
ADMIN_EMAIL: "${ADMIN_EMAIL:-admin@fluid.dev}"
ADMIN_PASSWORD_HASH: "${ADMIN_PASSWORD_HASH:-$2a$12$R.S6/e8G4U3ZJmBf6Bf6Bf6Bf6Bf6Bf6Bf6Bf6Bf6Bf6Bf6Bf6B}"
NEXTAUTH_URL: "http://localhost:3002"
FLUID_SERVER_URL: "http://rust-engine:3000"
ports:
- "3002:3002"
depends_on:
- rust-engine
networks:
- fluid-network
networks:
fluid-network:
driver: bridge
volumes:
postgres_data: