-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (50 loc) · 1.57 KB
/
docker-compose.yml
File metadata and controls
61 lines (50 loc) · 1.57 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
51
52
53
54
55
56
57
58
59
60
61
version: '3.8'
services:
font-server:
image: ghcr.io/fb-sean/font-server:main
container_name: font-server
restart: unless-stopped
# Environment variables
# You can also use a .env file in the same directory
environment:
# Server Configuration
# The port the server will listen on (default: 3000)
- PORT=${PORT:-3000}
# The base URL for your font server
# Used for generating font URLs in responses
- URL=${URL:-http://localhost:3000}
# Storage Configuration
# Your storage service URL (e.g., Hetzner Storage Box, S3, etc.)
- STORAGE_URL=${STORAGE_URL}
# The path where fonts are stored on your storage service
- STORAGE_PATH=${STORAGE_PATH:-/fonts/}
# Storage authentication credentials
- STORAGE_USER=${STORAGE_USER}
- STORAGE_PASSWORD=${STORAGE_PASSWORD}
# Port mapping
# Format: "HOST_PORT:CONTAINER_PORT"
ports:
- "${PORT:-3000}:3000"
# Optional: Add volumes if you need local storage access
# volumes:
# - ./local-fonts:/app/fonts
# Optional: Add health check
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000/ping"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Resource limits
# deploy:
# resources:
# limits:
# cpus: '0.5'
# memory: 512M
# reservations:
# cpus: '0.25'
# memory: 256M
# Optional: Define networks for service communication
# networks:
# default:
# name: font-server-network