Files
oikos/docker-compose.yml
T
Ulas 7292b14945 feat(docker): use pre-built GHCR image in docker-compose by default (#25)
docker-compose.yml now references ghcr.io/ulsklyc/oikos:latest so users
can start the app with a single 'docker compose up' without cloning or
building locally. The build: . entry is retained for contributors who
want to build from source with --build.

README Quick Start updated to document both the no-clone path (curl
docker-compose + .env.example) and the build-from-source path.
2026-04-05 16:20:24 +02:00

28 lines
763 B
YAML

services:
oikos:
image: ghcr.io/ulsklyc/oikos:latest
build: . # optional: use --build to build locally instead
container_name: oikos
restart: unless-stopped
ports:
- "0.0.0.0:3000:3000"
volumes:
- oikos_data:/data
env_file:
- .env
environment:
- NODE_ENV=production
- DB_PATH=/data/oikos.db
# Set to false when not using HTTPS/reverse proxy (direct HTTP access)
- SESSION_SECURE=false
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/health', r => process.exit(r.statusCode === 200 ? 0 : 1))"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
oikos_data:
driver: local