Files
main-site/docker-compose.yml
codex_a 7b2ad4cfe5
All checks were successful
CI / nightly-e2e (pull_request) Has been skipped
CI / pr-e2e (pull_request) Successful in 1m6s
CI / ci (pull_request) Successful in 1m23s
fix: remove server-specific playwright volume from dev compose, auto-seed on startup
- /opt/playwright-tools/browsers only exists on agent-workspace; mounting it
  in docker-compose.yml breaks local dev for everyone else
- seed_e2e_content is idempotent so safe to run on every startup; removes the
  manual step that nobody knew about

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-28 20:33:40 +00:00

46 lines
1.2 KiB
YAML

services:
web:
build: .
working_dir: /app
command: >
sh -c "python manage.py migrate --noinput &&
python manage.py seed_e2e_content &&
python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/app
ports:
- "8035:8000"
environment:
SECRET_KEY: dev-secret-key
DEBUG: "1"
ALLOWED_HOSTS: localhost,127.0.0.1,web
WAGTAIL_SITE_NAME: No Hype AI
DATABASE_URL: postgres://nohype:nohype@db:5432/nohype
DJANGO_SETTINGS_MODULE: config.settings.development
WAGTAILADMIN_BASE_URL: http://localhost:8035
CONSENT_POLICY_VERSION: "1"
EMAIL_BACKEND: django.core.mail.backends.console.EmailBackend
DEFAULT_FROM_EMAIL: hello@nohypeai.com
NEWSLETTER_PROVIDER: buttondown
depends_on:
db:
condition: service_healthy
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: nohype
POSTGRES_USER: nohype
POSTGRES_PASSWORD: nohype
volumes:
- nohype_pg:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U nohype -d nohype"]
interval: 5s
timeout: 5s
retries: 10
start_period: 5s
volumes:
nohype_pg: