-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
28 lines (28 loc) · 1005 Bytes
/
compose.yaml
File metadata and controls
28 lines (28 loc) · 1005 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
services:
url_to_pdf:
# Build locally; resulting image still named below for reuse/tagging.
build:
context: .
dockerfile: Dockerfile
image: deno-url-to-pdf
ports:
- "3000:3000"
environment:
PORT: "3000"
CHROMIUM_PATH: "/usr/bin/chromium-browser"
XDG_CONFIG_HOME: "/tmp/chrome-config"
DENO_DIR: "/deno-dir"
# read_only: true
tmpfs:
- /tmp:rw,exec # Chromium temporary files (needs exec)
- /run:rw,nosuid,nodev # Runtime state
- /home/deno/.cache:rw,nosuid,nodev # Avoid polluting image layer
# - /deno-dir:rw,nosuid,nodev # Writable DENO cache (DENO_DIR set in Dockerfile)
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
restart: unless-stopped
healthcheck:
# Using curl for health check (fail fast, silent, show errors if any)
test: ["CMD-SHELL", "curl -fsS http://localhost:3000/healthz || exit 1"]