mirror of
https://github.com/johndoe6345789/snippet-pastebin.git
synced 2026-04-24 13:34:55 +00:00
Generated by Spark: Should handle caprover / cloudflare cors - Check frontend and backend config. example setup: https://frontend.example.com https://backend.example.com
This commit is contained in:
@@ -6,9 +6,10 @@ services:
|
||||
ports:
|
||||
- "5000:5000"
|
||||
volumes:
|
||||
- snippet-data:/data
|
||||
- snippet-data:/app/data
|
||||
environment:
|
||||
- DB_PATH=/data/snippets.db
|
||||
- DATABASE_PATH=/app/data/snippets.db
|
||||
- CORS_ALLOWED_ORIGINS=http://localhost:3000
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
@@ -18,8 +19,6 @@ services:
|
||||
- VITE_FLASK_BACKEND_URL=http://localhost:5000
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- VITE_FLASK_BACKEND_URL=http://backend:5000
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user