noteshare.space/docker-compose.yml
Struchkov Mark 18d2de7805
Some checks failed
continuous-integration/drone/push Build is failing
Настроил сборку drone
2023-05-28 18:33:13 +03:00

44 lines
1.2 KiB
YAML

version: "3.7"
services:
noteshare-migrate:
image: upagge/noteshare-migrations:latest
volumes:
- ./noteshare/database:/database/
environment:
- DATABASE_URL=file:/database/db.sqlite
# Backend server for managing saved notes
noteshare-backend:
image: upagge/noteshare-backend:latest
restart: always
hostname: noteshare-backend
container_name: noteshare-backend
volumes:
- ./noteshare/database:/database/
environment:
- DATABASE_URL=file:/database/db.sqlite
- FRONTEND_URL=http://localhost:5000
- CLEANUP_INTERVAL_SECONDS=600
- NODE_ENV=production
# Rate limit for uploading notes
- POST_LIMIT_WINDOW_SECONDS=86400
- POST_LIMIT=50
# Rate limit for downloading notes
- GET_LIMIT_WINDOW_SECONDS=60
- GET_LIMIT=20
depends_on:
migrate:
condition: service_completed_successfully
# Frontend for serving encrypted notes over HTML (SvelteKit)
frontend:
image: upagge/noteshare-backend:latest
restart: always
hostname: noteshare-backend
container_name: noteshare-backend
environment:
- NODE_ENV=production
depends_on:
- noteshare-backend