docker support
This commit is contained in:
@@ -28,7 +28,7 @@ from cryptography.fernet import Fernet
|
|||||||
# ===== Application Configuration =====
|
# ===== Application Configuration =====
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.secret_key = os.getenv("FLASK_SECRET", os.urandom(24))
|
app.secret_key = os.getenv("FLASK_SECRET", os.urandom(24))
|
||||||
CORS(app)
|
CORS(app, origins=["https://pdf.unnaturalll.dev"])
|
||||||
|
|
||||||
# ===== Constants =====
|
# ===== Constants =====
|
||||||
ADMIN_CRED_FILE = 'admin_creds.json'
|
ADMIN_CRED_FILE = 'admin_creds.json'
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user