add: docker compose code
All checks were successful
Deploy on push / deploy (push) Has been skipped

This commit is contained in:
2026-03-23 02:50:30 -07:00
parent b1403da70d
commit dc1dce1120

View File

@@ -127,6 +127,33 @@ RANKINGS_STATE_PATH=/data/rankings-state.json npm start
In a containerized setup, mount `/data` as a named volume or bind mount.
If you reverse-proxy the app through Caddy on the same domain, the rankings page will use the shared API automatically with no extra CORS setup.
The current server deployment lives one directory up from this repo in `~/docker/websites/docker-compose.yml` and uses this `gallery` service definition:
```yaml
services:
gallery:
build:
context: ./gallery-src
container_name: gallery
environment:
HOST: 0.0.0.0
PORT: 80
RANKINGS_STATE_PATH: /data/rankings-state.json
volumes:
- gallery-rankings:/data
restart: unless-stopped
networks:
- web
networks:
web:
external: true
name: web
volumes:
gallery-rankings:
```
## Image Conventions
- Full-size images and thumbnails share the same numeric ID