-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
59 lines (55 loc) · 1.48 KB
/
docker-compose.example.yml
File metadata and controls
59 lines (55 loc) · 1.48 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
version: '3.8'
services:
# Lens Node (Backend)
lens-node:
image: zorlin/lens-v2:latest
container_name: lens-node
ports:
- "5002:5000"
volumes:
- lens-data:/data
environment:
- RUST_LOG=info
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/api/v1/ready"]
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
restart: unless-stopped
# Flagship Frontend
flagship:
image: zorlin/flagship-v2:latest
container_name: flagship
ports:
- "8080:80"
environment:
# Runtime configuration - change these to point to your backend
- API_URL=http://localhost:5002/api/v1
- RELAY_URL=ws://localhost:5002/api/v1/relay/ws
depends_on:
lens-node:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
restart: unless-stopped
volumes:
lens-data:
driver: local
# Quick Start:
# 1. Copy this file: cp docker-compose.example.yml docker-compose.yml
# 2. Start services: docker-compose up -d
# 3. Open browser: http://localhost:8080
#
# That's it! The frontend will automatically connect to the backend.
#
# To use a different backend (e.g., production):
# environment:
# - API_URL=https://api.riff.cc/api/v1
# - RELAY_URL=wss://api.riff.cc/api/v1/relay/ws
#
# No rebuild required - just restart the container!