-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (36 loc) · 864 Bytes
/
docker-compose.yaml
File metadata and controls
36 lines (36 loc) · 864 Bytes
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
services:
roxy:
build:
context: .
dockerfile: Dockerfile
image: roxy:latest
container_name: roxy
restart: unless-stopped
ports:
- "8080:8080"
volumes:
# Mount your config file
- ./config.yaml:/etc/roxy/config.yaml:ro
# Mount CA certificates if using MITM TLS
# - ./certs:/etc/roxy/certs:ro
# Security options
security_opt:
- no-new-privileges:true
read_only: true
# Resource limits
deploy:
resources:
limits:
cpus: '2'
memory: 512M
reservations:
cpus: '0.5'
memory: 128M
# Health check (disabled - distroless has no shell)
# Use orchestrator-level health checks or add a /health endpoint
# Logging
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"