增加python后端项目部署方法

This commit is contained in:
BBIT-Kai
2025-09-05 09:38:19 +08:00
parent 4a0e79b35a
commit 76150031c9
3 changed files with 27 additions and 11 deletions
+11 -11
View File
@@ -1,15 +1,4 @@
services:
# vue:
# image: node:18
# container_name: ce_vue_dev
# working_dir: /app
# volumes:
# - ./vue:/app
# ports:
# - "8090:8090"
# command: sh -c "npm install && npm run dev -- --host"
# networks:
# - ce_network
vue:
container_name: ce_vue
image: ce-vue:latest
@@ -18,6 +7,17 @@ services:
restart: always
networks:
- ce_network
backend:
container_name: ce-pybackend
image: ce-pybackend:latest
ports:
- "13011:13011"
restart: unless-stopped
networks:
- ce_network
depends_on:
- vue
postgres:
image: postgres:15-alpine