Some checks failed
Build All Docker Images / changes (push) Has been cancelled
Build and Push App Docker Image / build (push) Has been cancelled
Build and Push Node Docker Image / build (push) Has been cancelled
Test and Lint / test-app (push) Has been cancelled
Test and Lint / test-node (push) Has been cancelled
Test and Lint / lint-dockerfiles (push) Has been cancelled
Test and Lint / security-scan (push) Has been cancelled
Build All Docker Images / build-app (push) Has been cancelled
Build All Docker Images / build-node (push) Has been cancelled
Build All Docker Images / summary (push) Has been cancelled
39 lines
884 B
YAML
39 lines
884 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
# Main application (Express API + React frontend)
|
|
app:
|
|
build: .
|
|
container_name: frp-manager
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./logs:/app/logs
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
environment:
|
|
- NODE_ENV=production
|
|
- FRPC_SERVER_ADDR=${FRPC_SERVER_ADDR:-your-vps-ip}
|
|
- FRPC_SERVER_PORT=${FRPC_SERVER_PORT:-7000}
|
|
- FRPC_TOKEN=${FRPC_TOKEN}
|
|
- NODE_URL=${NODE_URL}
|
|
- NODE_TOKEN=${NODE_TOKEN}
|
|
- NODE_TIMEOUT=${NODE_TIMEOUT:-5000}
|
|
depends_on:
|
|
- frpc
|
|
restart: unless-stopped
|
|
|
|
# FRPC client container
|
|
frpc:
|
|
image: snowdreamtech/frpc:latest
|
|
container_name: frpc
|
|
volumes:
|
|
- ./data/frpc.toml:/etc/frp/frpc.toml
|
|
depends_on:
|
|
- app
|
|
restart: unless-stopped
|
|
network_mode: "host"
|
|
|
|
volumes:
|
|
data:
|
|
logs:
|