-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (49 loc) · 1.83 KB
/
docker-compose.yml
File metadata and controls
50 lines (49 loc) · 1.83 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
services:
amutorrent:
build:
context: .
dockerfile: Dockerfile
image: amutorrent:latest
user: "1000:1000"
container_name: amutorrent
ports:
- "${PORT:-4000}:${PORT:-4000}"
# All environment variables are optional. See .env.example for the full list.
# Copy .env.example to .env and uncomment the variables you need.
env_file:
- path: .env
required: false
environment:
- NODE_ENV=production
- PORT=${PORT:-4000}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./logs:/usr/src/app/server/logs
- ./data:/usr/src/app/server/data
# Event Scripting: Edit scripts/custom.sh to run your own scripts on events
# - ./scripts:/usr/src/app/scripts
# Download directories (optional): Required for moving/deleting files (clients without native APIs)
# - /path/to/aMule/incoming:/downloads/aMule
# - /path/to/rTorrent/downloads:/downloads/rTorrent
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:' + (process.env.PORT || 4000) + '/health', r => r.statusCode === 200 ? process.exit(0) : process.exit(1)).on('error', () => process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
restart: unless-stopped
# Optional: GeoIP database updater
# Requires free MaxMind license: https://www.maxmind.com/en/geolite-free-ip-geolocation-data
geoip:
image: crazymax/geoip-updater:latest
container_name: geoip-updater
environment:
- EDITION_IDS=GeoLite2-ASN,GeoLite2-City,GeoLite2-Country
- LICENSE_KEY=YOUR_LICENSE_KEY # Replace with your MaxMind license key
- DOWNLOAD_PATH=/data
- SCHEDULE=0 0 * * 0 # Weekly on Sunday at midnight
- LOG_LEVEL=info
- LOG_JSON=false
volumes:
- ./data/geoip:/data
restart: unless-stopped