-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.caddy.example.yml
More file actions
71 lines (66 loc) · 1.9 KB
/
Copy pathdocker-compose.caddy.example.yml
File metadata and controls
71 lines (66 loc) · 1.9 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
62
63
64
65
66
67
68
69
70
71
name: itsnotes
services:
itsnotes-db:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_USER: itsnotesuser
POSTGRES_PASSWORD: change-this-password
POSTGRES_DB: itsnotes
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 10s
timeout: 5s
retries: 5
itsnotes-server:
image: ghcr.io/alexmicuplusfour/itsnotes-server:latest
restart: unless-stopped
depends_on:
itsnotes-db:
condition: service_healthy
environment:
NODE_ENV: production
PORT: 5000
DB_HOST: itsnotes-db
DB_PORT: 5432
DB_USER: itsnotesuser
DB_PASSWORD: change-this-password
DB_NAME: itsnotes
PUPPETEER_EXECUTABLE_PATH: /usr/bin/chromium-browser
BACKUP_PATH: /app/backups
# Markdown Mirror target — exported .md files appear in ./notes-mirror on the host
MD_MIRROR_PATH: /data/notes-mirror
# Optional — set a fixed auth secret (otherwise auto-generated on first run):
# JWT_SECRET: generate-with-openssl-rand-hex-32
# Optional — AI features:
# OPENAI_API_KEY: sk-...
volumes:
- attachments_data:/app/uploads
- backups_data:/app/backups
# Browsable folder for the Markdown Mirror feature (turn it on in Settings)
- ./notes-mirror:/data/notes-mirror
itsnotes-client:
image: ghcr.io/alexmicuplusfour/itsnotes-client:latest
restart: unless-stopped
depends_on:
- itsnotes-server
itsnotes-caddy:
image: caddy:alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
depends_on:
- itsnotes-client
volumes:
postgres_data:
attachments_data:
backups_data:
caddy_data:
caddy_config: