docker support

This commit is contained in:
Tyler
2025-05-18 00:38:15 -10:00
committed by GitHub
parent da0ab0f042
commit 1fd15b40f3
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ from cryptography.fernet import Fernet
# ===== Application Configuration =====
app = Flask(__name__)
app.secret_key = os.getenv("FLASK_SECRET", os.urandom(24))
CORS(app)
CORS(app, origins=["https://pdf.unnaturalll.dev"])
# ===== Constants =====
ADMIN_CRED_FILE = 'admin_creds.json'
+22
View File
@@ -0,0 +1,22 @@
version: "3.8"
services:
paccrypt:
build: .
container_name: paccrypt
ports:
- "5001:5000"
environment:
- PYTHONDONTWRITEBYTECODE=1
- PYTHONUNBUFFERED=1
- PRODUCTION=true
volumes:
- /mnt/stor4tb/uploads:/app/uploads
restart: unless-stopped
networks:
- shared_internal
networks:
shared_internal:
external: true