[dyad] wrote 5 file(s)

This commit is contained in:
Michael committed 2025-11-06 12:20:50 +01:00
1 parent 33b241f0c1
commit 5e6670d921
5 files changed
+218 -83

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
version: '3.8'
services:
notes-app:
build: .
container_name: notes-todo-app
ports:
- "3000:3000"
volumes:
- ./data:/app/data
- ./public/uploads:/app/public/uploads
environment:
- NODE_ENV=production
- JWT_SECRET=changeme_in_production
- PORT=3000
restart: unless-stopped
networks:
- nginx_default
networks:
nginx_default:
external: true
# Nginx configuration example:
# location /notes/ {
# proxy_pass http://notes-todo-app:3000/;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade';
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_cache_bypass $http_upgrade;
# client_max_body_size 10M;
# }