Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (46 loc) · 1.62 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (46 loc) · 1.62 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
38
39
40
41
42
43
44
45
46
# Self-hosting: the server with the dashboard, and Postgres.
# docker compose up -d
# then open http://localhost:8080. The dashboard opens without signing in,
# as SESSIONLY_ADMIN_EMAIL: anyone who can reach the port is its admin, so
# keep it on a network you trust. Machines connect with a token made on its
# Connect page.
#
# Settings go here in the environment or in a .env file beside this one.
# See docs-site/server.md.
services:
server:
build:
context: .
# The release it is, for figures and exports: SESSIONLY_BUILD_VERSION=v0.9.0 (say) when building a release's tag.
args:
SESSIONLY_VERSION: ${SESSIONLY_BUILD_VERSION:-}
ports:
- "${SESSIONLY_PORT:-8080}:8080"
environment:
DATABASE_URL: postgres://sessionly:sessionly@db:5432/sessionly
SESSIONLY_ADMIN_EMAIL: ${SESSIONLY_ADMIN_EMAIL:-admin@localhost}
# Optional: an admin token that always works, for scripts and CI.
SESSIONLY_ADMIN_TOKEN: ${SESSIONLY_ADMIN_TOKEN:-}
# The dashboard counts which of its pages are opened (docs-site/dashboard.md); "off" stops it.
SESSIONLY_TELEMETRY: ${SESSIONLY_TELEMETRY:-}
DO_NOT_TRACK: ${DO_NOT_TRACK:-}
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:17
environment:
POSTGRES_USER: sessionly
POSTGRES_PASSWORD: sessionly
POSTGRES_DB: sessionly
volumes:
- sessionly-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U sessionly"]
interval: 3s
timeout: 3s
retries: 20
restart: unless-stopped
volumes:
sessionly-db: