2022-07-01 23:06:50 +03:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
2022-07-03 12:02:21 +03:00
|
|
|
|
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
|
|
|
|
|
2022-07-03 11:27:11 +03:00
|
|
|
# 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
|
2022-07-03 12:02:21 +03:00
|
|
|
- FRONTEND_URL=http://localhost:5000
|
2022-07-02 22:14:07 +03:00
|
|
|
- CLEANUP_INTERVAL_SECONDS=600
|
2022-07-11 00:00:32 +03:00
|
|
|
- NODE_ENV=production
|
|
|
|
# Rate limit for uploading notes
|
2022-07-02 22:14:07 +03:00
|
|
|
- POST_LIMIT_WINDOW_SECONDS=86400
|
|
|
|
- POST_LIMIT=50
|
2022-07-11 00:00:32 +03:00
|
|
|
# Rate limit for downloading notes
|
|
|
|
- GET_LIMIT_WINDOW_SECONDS=60
|
|
|
|
- GET_LIMIT=20
|
2022-07-01 23:06:50 +03:00
|
|
|
depends_on:
|
2022-07-03 11:27:11 +03:00
|
|
|
migrate:
|
|
|
|
condition: service_completed_successfully
|
2022-07-03 12:02:21 +03:00
|
|
|
|
2022-07-03 11:27:11 +03:00
|
|
|
# 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
|
2022-07-03 11:27:11 +03:00
|
|
|
depends_on:
|
2023-05-28 18:33:13 +03:00
|
|
|
- noteshare-backend
|