-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (31 loc) · 930 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (31 loc) · 930 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
37
version: '3.8'
services:
akkoma-media-proxy:
image: ghcr.io/blockg-ws/akkoma-media-proxy:latest
container_name: akkoma-media-proxy
restart: unless-stopped
ports:
- "3000:3000"
environment:
# Option 1: Use environment variable for simple setup
- UPSTREAM_URL=https://your-akkoma-instance.com
# Option 2: Use configuration file (comment out UPSTREAM_URL above)
# - CONFIG_PATH=/app/config.toml
# Logging
- RUST_LOG=info
# Option 2 configuration: mount config file
# volumes:
# - ./config.toml:/app/config.toml:ro
# Optional: add health check
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
# Security options
security_opt:
- no-new-privileges:true
read_only: true
tmpfs:
- /tmp