Repository navigation
Expand file tree
/
Copy pathdocker-compose.design.yml
More file actions
61 lines (58 loc) · 2.02 KB
/
Copy pathdocker-compose.design.yml
File metadata and controls
61 lines (58 loc) · 2.02 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Isolated design-review dev instance. Runs alongside the live prod stack:
# its own project name, its own redis/postgres, one published port (8890).
# Bind-mounts the repo so CSS/JS edits are live with no rebuild.
# The project name is pinned HERE, not left to a -p flag: without it compose
# defaults to the directory name ("tensies"), which is the LIVE PROD project —
# so a bare `docker compose -f docker-compose.design.yml restart web` restarts
# the prod container serving the Hubble wall. That happened on 2026-08-20.
name: tensies-design
services:
web:
build: .
ports:
- "127.0.0.1:8890:8000"
volumes:
- .:/app
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
environment:
REDIS_URL: redis://:devpassword@redis:6379/0
POSTGRES_DSN: postgresql://tensies:tensies@postgres:5432/tensies
TELEMETRY_ENABLED: "0"
PROBE_PATHS: "1" # iOS Safari probe paths, always on for the design stack
METRICS_TOKEN: devmetrics
STATS_TOKEN: devstats
WIDGET_TOKEN: devwidget
CREATE_RATE_MAX: "200"
JOIN_RATE_MAX: "200"
JWT_SECRET: dev-jwt-secret-do-not-use-in-prod
WEBAUTHN_RP_ID: localhost
WEBAUTHN_ORIGIN: http://localhost:8890
CSP_EXTRA_IMG_SRC: https://cdn1.simmons.cloud
APP_URL: http://localhost:8890
ENABLE_DRAND_ROLLING: "0"
PLACES_ENABLED: "1"
DISCOVERY_ENABLED: "1"
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
redis:
image: redis:8.10-alpine
command: ["redis-server", "--requirepass", "devpassword", "--save", "", "--appendonly", "no"]
healthcheck:
test: ["CMD", "redis-cli", "-a", "devpassword", "ping"]
interval: 3s
timeout: 3s
retries: 10
postgres:
image: postgres:18-alpine
environment:
POSTGRES_USER: tensies
POSTGRES_PASSWORD: tensies
POSTGRES_DB: tensies
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tensies"]
interval: 3s
timeout: 3s
retries: 10