chore: initialize tuhui repository
This commit is contained in:
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
api:
|
||||
build: .
|
||||
container_name: tuhui_backend
|
||||
restart: always
|
||||
ports:
|
||||
- "8002:8002"
|
||||
volumes:
|
||||
- ./backend/app:/app/app
|
||||
- /var/www/tuhui_uploads:/app/uploads
|
||||
environment:
|
||||
DATABASE_URL: mysql+pymysql://tuhui_user:tuhui_123456@host.docker.internal:3306/tuhui
|
||||
API_PORT: "8002"
|
||||
PYTHONUNBUFFERED: "1"
|
||||
command: uvicorn app.main:app --host 0.0.0.0 --port 8002 --reload
|
||||
Reference in New Issue
Block a user