forked from Fdawgs/docsmith
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (37 loc) · 1.32 KB
/
docker-compose.yml
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
services:
app:
container_name: docsmith
build:
context: .
deploy:
resources:
limits:
cpus: "${DOCKER_APP_CPUS:-0}"
memory: "${DOCKER_APP_MEMORY:-0}"
env_file: .env
environment:
LOG_ROTATION_DATE_FORMAT:
LOG_ROTATION_FILENAME:
NODE_ENV: production
HOST: 0.0.0.0
POPPLER_BINARY_PATH: /usr/bin/
UNRTF_BINARY_PATH: /usr/bin/
healthcheck:
test: curl "localhost:${PORT:-3000}/admin/healthcheck"
interval: 60s
timeout: 3s
start_period: 5s
retries: 3
labels:
# Using OCI Image Format spec
# See https://github.com/opencontainers/image-spec/blob/main/annotations.md
org.opencontainers.image.authors: Frazer Smith <[email protected]>
org.opencontainers.image.licenses: MIT
org.opencontainers.image.url: https://github.com/Fdawgs/docsmith
logging:
options:
max-file: "${LOG_ROTATION_MAX_LOGS:-10}"
max-size: "${LOG_ROTATION_MAX_SIZE:-100m}"
ports:
- "127.0.0.1:${PORT:-3000}:${PORT:-3000}"
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"