``update Add Docker build and deployment workflow for CMS and Ionic Mobile, update docker-compose.yml with new service images, and enhance documentation with strategy diagram and endpoint table``

This commit is contained in:
2025-05-24 08:21:33 +08:00
parent 1157bf0fda
commit cb8643b405
16 changed files with 462 additions and 85 deletions

View File

@@ -2,7 +2,7 @@
services:
cms:
image: 192.168.10.61:5000/demo_cms_ubuntu
image: 192.168.10.61:5000/demo_ls_cms
build: ../cms
env_file:
- .env
@@ -89,33 +89,32 @@ services:
# reservations:
# cpus: 0.01
# ionic_mobile:
# # image: node:20-bullseye-slim
# image: 192.168.10.61:5000/demo_ionic_mobile
# build: ../ionic_mobile
# # user: 1000:1000
# env_file:
# - .env
# volumes:
# - ../ionic_mobile:/app
# ports:
# - 3012:5173
# - 8081:8080
# working_dir: /app
# command: /app/scripts/docker/entrypoint.sh
# depends_on:
# pocketbase:
# condition: service_healthy
# healthcheck:
# #optional (recommended) since v0.10.0
# test: wget --no-verbose --tries=1 --spider http://localhost:5173 || exit 1
# interval: 5s
# timeout: 5s
# retries: 5
ionic_mobile:
# image: node:20-bullseye-slim
image: 192.168.10.61:5000/demo_ionic_mobile
build: ../ionic_mobile
# user: 1000:1000
env_file:
- .env
volumes:
- ../ionic_mobile:/app
ports:
- 3012:8080
working_dir: /app
command: /app/scripts/docker/entrypoint.sh
depends_on:
pocketbase:
condition: service_healthy
healthcheck:
#optional (recommended) since v0.10.0
test: wget --no-verbose --tries=1 --spider http://localhost:5173 || exit 1
interval: 5s
timeout: 5s
retries: 5
# deploy:
# resources:
# limits:
# cpus: '0.5'
# reservations:
# cpus: '0.01'
deploy:
resources:
limits:
cpus: '0.5'
reservations:
cpus: '0.01'