-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 1.65 KB
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (34 loc) · 1.65 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
# Crew — single-service stack (issue 0009).
# Usage: cp .env.example .env && docker compose up --build
#
# One container, one named volume for the SQLite database. The embedding model is
# baked into the image at build time, so this comes up with no outbound network.
services:
server:
build:
context: .
dockerfile: Dockerfile
args:
VITE_RYBBIT_SITE_ID: ${VITE_RYBBIT_SITE_ID:-}
VITE_RYBBIT_SCRIPT_SRC: ${VITE_RYBBIT_SCRIPT_SRC:-https://rybbit.missingmounts.com/api/script.js}
# The container always listens on 8080 internally (Dockerfile PORT default);
# CREW_HOST_PORT (.env) picks the published host port — 8087 to match the plugin.
ports:
- "${CREW_HOST_PORT:-8087}:8080"
environment:
# Auth config — see .env / .env.example (ADR 0003). The secret signs
# sessions; the admin pair seeds the first Admin on a fresh database.
CREW_AUTH_SECRET: ${CREW_AUTH_SECRET:?set CREW_AUTH_SECRET in .env (copy from .env.example)}
CREW_ADMIN_EMAIL: ${CREW_ADMIN_EMAIL:?set CREW_ADMIN_EMAIL in .env (copy from .env.example)}
CREW_ADMIN_PASSWORD: ${CREW_ADMIN_PASSWORD:?set CREW_ADMIN_PASSWORD in .env (copy from .env.example)}
CREW_ADMIN_NAME: ${CREW_ADMIN_NAME:-Admin}
# Public origin better-auth builds routes/cookies against (defaults to
# http://localhost:<PORT> inside the container if unset).
CREW_BASE_URL: ${CREW_BASE_URL:-}
volumes:
# SQLite (+ WAL/SHM) persists here across restarts; CREW_DB_PATH=/data/crew.db
# is set in the image, so the file lands on this named volume.
- crew-data:/data
restart: unless-stopped
volumes:
crew-data: