-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.61 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.61 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
services:
# ── Frontend (production image) ──────────────────────────────────────────────
interface:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_SOROBAN_RPC_URL=${NEXT_PUBLIC_SOROBAN_RPC_URL:-https://soroban-testnet.stellar.org}
- NEXT_PUBLIC_CONTRACT_ID=${NEXT_PUBLIC_CONTRACT_ID:-}
- NEXT_PUBLIC_NETWORK_PASSPHRASE=${NEXT_PUBLIC_NETWORK_PASSPHRASE:-Test SDF Network ; September 2015}
env_file:
- path: .env.local
required: false
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:3000/"]
interval: 15s
timeout: 5s
retries: 5
start_period: 20s
# ── Frontend dev server (hot reload) ────────────────────────────────────────
interface-dev:
image: node:20-alpine
working_dir: /app
command: sh -c "npm ci && npm run dev"
ports:
- "3001:3000"
volumes:
- .:/app
- interface_node_modules:/app/node_modules
environment:
- NODE_ENV=development
- NEXT_PUBLIC_SOROBAN_RPC_URL=${NEXT_PUBLIC_SOROBAN_RPC_URL:-https://soroban-testnet.stellar.org}
- NEXT_PUBLIC_CONTRACT_ID=${NEXT_PUBLIC_CONTRACT_ID:-}
- NEXT_PUBLIC_NETWORK_PASSPHRASE=${NEXT_PUBLIC_NETWORK_PASSPHRASE:-Test SDF Network ; September 2015}
env_file:
- path: .env.local
required: false
profiles:
- dev
volumes:
interface_node_modules: