d3de5c29e7
feat(notes): add XLSX import island and admin route feat(upload): add drag‑and‑drop upload, template download, UI tweaks
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
services:
|
|
db:
|
|
image: postgres:17-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_PASSWORD: testpass
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_DB: polympr_test
|
|
volumes:
|
|
- db_data_test:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
migrate:
|
|
image: node:alpine
|
|
working_dir: /app
|
|
restart: "no"
|
|
volumes:
|
|
- .:/app
|
|
command: node_modules/.bin/drizzle-kit migrate
|
|
environment:
|
|
POSTGRES_HOST: db
|
|
POSTGRES_PORT: "5432"
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASS: testpass
|
|
POSTGRES_DB: polympr_test
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
|
|
app:
|
|
image: denoland/deno:alpine
|
|
working_dir: /app
|
|
volumes:
|
|
- .:/app
|
|
- deno_cache:/deno-dir
|
|
command: run -A --unstable-ffi main.ts
|
|
ports:
|
|
- "4430:443"
|
|
environment:
|
|
POSTGRES_HOST: db
|
|
POSTGRES_PORT: "5432"
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASS: testpass
|
|
POSTGRES_DB: polympr_test
|
|
LOCAL: "true"
|
|
depends_on:
|
|
migrate:
|
|
condition: service_completed_successfully
|
|
|
|
volumes:
|
|
db_data_test:
|
|
deno_cache:
|