Some checks are pending
CI Pipeline / Run Tests (push) Waiting to run
CI Pipeline / Lint Code (push) Waiting to run
CI Pipeline / Security Scan (push) Waiting to run
CI Pipeline / Build Docker Images (push) Blocked by required conditions
CI Pipeline / E2E Tests (push) Blocked by required conditions
51 lines
1003 B
YAML
51 lines
1003 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
gateway:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.dev
|
|
ports:
|
|
- "9876:9876" # Gateway API
|
|
- "8081:8081" # Blossom server
|
|
- "6882:6882/udp" # DHT node
|
|
volumes:
|
|
- .:/app
|
|
- ./data:/app/data
|
|
- ./configs:/app/configs
|
|
environment:
|
|
- GO_ENV=development
|
|
- CGO_ENABLED=1
|
|
restart: unless-stopped
|
|
command: ["air", "-c", ".air.toml"] # Hot reload with air
|
|
depends_on:
|
|
- redis
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis_data:/data
|
|
command: redis-server --appendonly yes
|
|
restart: unless-stopped
|
|
|
|
# Development database browser
|
|
sqlite-web:
|
|
image: coleifer/sqlite-web
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- ./data:/data
|
|
environment:
|
|
- SQLITE_DATABASE=/data/metadata.db
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- gateway
|
|
|
|
volumes:
|
|
redis_data:
|
|
|
|
networks:
|
|
default:
|
|
name: torrent-gateway-dev |