增加python后端项目部署方法
This commit is contained in:
+11
-11
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user