noteshare.space/docker-compose.yml

44 lines
1.2 KiB
YAML
Raw Normal View History

2022-07-01 23:06:50 +03:00
version: "3.7"
services:
2023-05-28 18:33:13 +03:00
noteshare-migrate:
image: upagge/noteshare-migrations:latest
2022-07-01 23:06:50 +03:00
volumes:
2023-05-28 18:33:13 +03:00
- ./noteshare/database:/database/
2022-07-01 23:06:50 +03:00
environment:
- DATABASE_URL=file:/database/db.sqlite
# Backend server for managing saved notes
2023-05-28 18:33:13 +03:00
noteshare-backend:
image: upagge/noteshare-backend:latest
restart: always
hostname: noteshare-backend
container_name: noteshare-backend
2022-07-01 23:06:50 +03:00
volumes:
2023-05-28 18:33:13 +03:00
- ./noteshare/database:/database/
2022-07-01 23:06:50 +03:00
environment:
- DATABASE_URL=file:/database/db.sqlite
- FRONTEND_URL=http://localhost:5000
2022-07-02 22:14:07 +03:00
- CLEANUP_INTERVAL_SECONDS=600
- NODE_ENV=production
# Rate limit for uploading notes
2022-07-02 22:14:07 +03:00
- POST_LIMIT_WINDOW_SECONDS=86400
- POST_LIMIT=50
# Rate limit for downloading notes
- GET_LIMIT_WINDOW_SECONDS=60
- GET_LIMIT=20
2022-07-01 23:06:50 +03:00
depends_on:
migrate:
condition: service_completed_successfully
# Frontend for serving encrypted notes over HTML (SvelteKit)
2022-07-03 11:27:29 +03:00
frontend:
2023-05-28 18:33:13 +03:00
image: upagge/noteshare-backend:latest
restart: always
hostname: noteshare-backend
container_name: noteshare-backend
2022-07-06 16:22:59 +03:00
environment:
- NODE_ENV=production
depends_on:
2023-05-28 18:33:13 +03:00
- noteshare-backend