mirror of
https://github.com/yyhuni/xingrin.git
synced 2026-01-31 19:53:11 +08:00
- Add new server/Dockerfile for Go backend containerization with multi-stage build - Update docker-compose.dev.yml to include server service with database and Redis dependencies - Migrate Sublist3r tool path from /usr/local/share to /opt/orbit-tools/share for consistency - Add legacy notice to docker/worker/Dockerfile clarifying it's for old Python executor - Update subdomain discovery documentation with RFC3339 timestamp format - Update template parsing test to reflect new tool path location - Consolidate development environment configuration with all required services
74 lines
1.5 KiB
YAML
74 lines
1.5 KiB
YAML
# Go 后端开发环境
|
|
# 启动: docker compose -f docker-compose.dev.yml up -d --build
|
|
# 停止: docker compose -f docker-compose.dev.yml down
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: orbit
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: [CMD-SHELL, pg_isready -U postgres]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- 6379:6379
|
|
healthcheck:
|
|
test: [CMD, redis-cli, ping]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
server:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
ports:
|
|
- 8888:8888
|
|
environment:
|
|
# Server
|
|
SERVER_PORT: 8888
|
|
GIN_MODE: debug
|
|
|
|
# Database
|
|
DB_HOST: postgres
|
|
DB_PORT: 5432
|
|
DB_USER: postgres
|
|
DB_PASSWORD: postgres
|
|
DB_NAME: orbit
|
|
DB_SSLMODE: disable
|
|
|
|
# Redis
|
|
REDIS_HOST: redis
|
|
REDIS_PORT: 6379
|
|
|
|
# Storage
|
|
WORDLISTS_BASE_PATH: /opt/orbit/wordlists
|
|
|
|
# Auth
|
|
WORKER_TOKEN: change-me-worker-token
|
|
JWT_SECRET: change-me-in-production-use-a-long-random-string
|
|
volumes:
|
|
- /opt/orbit:/opt/orbit
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
postgres_data:
|