-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.staging.yml
More file actions
49 lines (47 loc) · 1.38 KB
/
docker-compose.staging.yml
File metadata and controls
49 lines (47 loc) · 1.38 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
# =============================================================================
# Docker Compose — Staging Environment
# =============================================================================
# Used by the deploy.yml workflow for staging deployments.
# Also suitable for local staging simulation.
#
# Usage:
# IMAGE_TAG=ghcr.io/<owner>/peernexus:1.2.3 docker compose -f docker-compose.staging.yml up -d
# =============================================================================
services:
peernexus-staging:
image: ${IMAGE_TAG:-ghcr.io/peernexus/peernexus:latest}
container_name: peernexus-staging
ports:
- "8080:8080"
- "8081:8081"
- "6881:6881"
- "6881:6881/udp"
volumes:
- staging-downloads:/app/downloads
- staging-state:/app/state
- staging-logs:/app/logs
environment:
- JAVA_OPTS=-XX:MaxRAMPercentage=75.0 -Djava.awt.headless=true
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8080/api/stats"]
interval: 15s
timeout: 5s
start_period: 30s
retries: 5
restart: unless-stopped
deploy:
resources:
limits:
memory: 512M
cpus: "1.0"
reservations:
memory: 256M
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
staging-downloads:
staging-state:
staging-logs: