Skip to content

Commit 696ce2e

Browse files
authored
fixed compose
1 parent 7a362ee commit 696ce2e

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

‎docker-compose.yml‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
services:
22
ipa-signer:
33
image: ghcr.io/kleo08s/ipasignerapi:latest
4-
build: .
54
container_name: ipasignerapi
65
restart: unless-stopped
7-
env_file: .env
86
environment:
97
DATA_DIR: /data
8+
PORT: ${PORT:-3000}
9+
DOMAIN: ${DOMAIN:?Set DOMAIN (e.g. sign.example.com)}
10+
MAX_IPA_MB: ${MAX_IPA_MB:-500}
11+
MAX_MOBILEPROVISION_MB: ${MAX_MOBILEPROVISION_MB:-1}
12+
MAX_P12_MB: ${MAX_P12_MB:-1}
13+
CLEANUP_MINUTES: ${CLEANUP_MINUTES:-60}
14+
RATE_LIMIT_IP_MAX: ${RATE_LIMIT_IP_MAX:-10}
15+
RATE_LIMIT_IP_WINDOW_MINUTES: ${RATE_LIMIT_IP_WINDOW_MINUTES:-60}
16+
RATE_LIMIT_GLOBAL_MAX: ${RATE_LIMIT_GLOBAL_MAX:-100}
17+
RATE_LIMIT_GLOBAL_WINDOW_MINUTES: ${RATE_LIMIT_GLOBAL_WINDOW_MINUTES:-60}
18+
TRUST_PROXY: ${TRUST_PROXY:-1}
1019
ports:
1120
- "${PORT:-3000}:${PORT:-3000}"
1221
volumes:
13-
- ipa-data:/data
22+
- ipasignerapi-data:/data
1423
healthcheck:
1524
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:' + (process.env.PORT || 3000) + '/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
1625
interval: 30s
@@ -19,4 +28,4 @@ services:
1928
start_period: 10s
2029

2130
volumes:
22-
ipa-data:
31+
ipasignerapi-data:

0 commit comments

Comments
 (0)