From dc1dce1120f7e3ff7997b06643d6b01e431bf756 Mon Sep 17 00:00:00 2001 From: Ryan Chou Date: Mon, 23 Mar 2026 02:50:30 -0700 Subject: [PATCH] add: docker compose code --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 468b260..18203c2 100644 --- a/README.md +++ b/README.md @@ -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