forked from Feyisara2108/stellargive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
34 lines (31 loc) · 936 Bytes
/
Copy pathdocker-compose.prod.yml
File metadata and controls
34 lines (31 loc) · 936 Bytes
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
version: "3.9"
# Production-like override: builds and runs the actual frontend/Dockerfile
# image instead of the node:20-alpine dev bind-mount in docker-compose.yml,
# against the same Soroban quickstart node used for local development.
#
# Usage:
# docker compose -f docker-compose.prod.yml up --build
services:
stellar:
image: stellar/quickstart:testing
command: --standalone --enable-soroban --protocol-version 21
ports:
- "${STELLAR_PORT_RPC:-8000}:8000"
- "${STELLAR_PORT_FRIENDBOT:-8001}:8001"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8000/ || exit 1"]
interval: 10s
timeout: 5s
retries: 15
start_period: 10s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "${FRONTEND_PORT:-3000}:3000"
environment:
- NODE_ENV=production
depends_on:
stellar:
condition: service_healthy