-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
37 lines (35 loc) · 1.16 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
services:
scrolly:
# Pin to a specific version for stability
# Update after releases: https://github.com/312-dev/scrolly/releases
image: ghcr.io/312-dev/scrolly:1.0.0
# To build locally instead, comment out 'image' and uncomment:
# build: .
ports:
- "3000:3000"
volumes:
- scrolly-data:/app/data
env_file:
- .env
environment:
- ORIGIN=${PUBLIC_APP_URL:-http://localhost:3000}
# Required when behind a reverse proxy (NPM, nginx, Caddy) for correct rate limiting
- ADDRESS_HEADER=X-Forwarded-For
- XFF_DEPTH=1
restart: unless-stopped
# Optional: label for Watchtower auto-updates (uncomment to enable)
# labels:
# - "com.centurylinklabs.watchtower.enable=true"
# Optional: auto-update container when new images are published
# Uncomment to enable automatic updates (checks daily)
# watchtower:
# image: containrrr/watchtower
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# environment:
# - WATCHTOWER_CLEANUP=true
# - WATCHTOWER_POLL_INTERVAL=86400
# - WATCHTOWER_LABEL_ENABLE=true
# restart: unless-stopped
volumes:
scrolly-data: