mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:21:10 +02:00
🚀 feat(zitare-web): add Docker deployment infrastructure
- Add Dockerfile for production build - Add docker-entrypoint.sh for runtime config - Add hooks.server.ts for client-side env injection - Add zitare-web service to docker-compose.macmini.yml - Port 5012 - Depends on zitare-backend - Health check on /health endpoint
This commit is contained in:
parent
ef9bd5656d
commit
533bd90093
4 changed files with 170 additions and 0 deletions
|
|
@ -1065,6 +1065,32 @@ services:
|
|||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
zitare-web:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: apps/zitare/apps/web/Dockerfile
|
||||
image: zitare-web:local
|
||||
container_name: mana-app-zitare-web
|
||||
restart: always
|
||||
depends_on:
|
||||
zitare-backend:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 5012
|
||||
PUBLIC_ZITARE_API_URL: http://zitare-backend:3007
|
||||
PUBLIC_MANA_CORE_AUTH_URL: http://mana-auth:3001
|
||||
PUBLIC_ZITARE_API_URL_CLIENT: https://zitare-api.mana.how
|
||||
PUBLIC_MANA_CORE_AUTH_URL_CLIENT: https://auth.mana.how
|
||||
ports:
|
||||
- "5012:5012"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:5012/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
calendar-web:
|
||||
image: ghcr.io/memo-2023/calendar-web:latest
|
||||
container_name: mana-app-calendar-web
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue