init
This commit is contained in:
2025-07-28 22:43:00 +08:00
parent b12e790507
commit c678630298
5 changed files with 342 additions and 0 deletions

29
docker-compose.yml Normal file
View File

@@ -0,0 +1,29 @@
version: '3.8'
services:
imagezoom:
build: .
ports:
- "5000:5000"
volumes:
- ./uploads:/app/uploads
- ./templates:/app/templates
environment:
- FLASK_ENV=development
- FLASK_DEBUG=1
restart: unless-stopped
# 可選:如果需要資料庫
# db:
# image: postgres:15
# environment:
# POSTGRES_DB: imagezoom
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: password
# volumes:
# - postgres_data:/var/lib/postgresql/data
# ports:
# - "5432:5432"
# volumes:
# postgres_data: