Sync deploy: backend, frontend, worker, docker, config

This commit is contained in:
Azouhri Abdelaziz
2026-02-04 19:22:50 +01:00
parent a110b59280
commit 34c7a27e35
2 changed files with 14 additions and 6 deletions

View File

@@ -33,6 +33,9 @@ COPY --from=builder /app/package*.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/prisma ./prisma
# scripts + src needed so prisma-init can run: npx prisma db seed (seed.ts imports scripts/seed-app-config → src/config)
COPY --from=builder /app/scripts ./scripts
COPY --from=builder /app/src ./src
# Env at runtime from compose env_file (../.env.staging); .env is in .dockerignore so not in image
EXPOSE 4000

View File

@@ -13,9 +13,9 @@
# If Traefik routing or HTTPS does not work, Coolify may use different entry point names
# (e.g. web/websecure); then use docs/coolify-proxy-app-getlinkzen.yaml as fallback.
#
# MEMORY: This stack requests ~14 GB of memory limits. On a 4 GB server you will swap heavily
# and Coolify + the app will be very slow. Use a server with at least 8 GB RAM, or apply
# reduced limits (see docs/COOLIFY-SETUP.md § "Running on 4 GB RAM").
# MEMORY: This stack requests ~14 GB of memory limits. On 4 GB you swap heavily (very slow).
# On 8 GB you can still swap when many services are active; if Coolify or the app feel slow,
# reduce limits so total is ~67 GB or check with: free -h; docker stats (see COOLIFY-SETUP.md §8b).
# =============================================================================
services:
@@ -483,16 +483,21 @@ services:
reservations:
memory: 64M
# Use existing networks (Coolify/redeploy: they already exist from a previous run).
# First deploy on a new server: create them once with e.g.
# docker network create toolsplatform-backend
# docker network create toolsplatform-frontend
# docker network create toolsplatform-processing
networks:
backend:
name: toolsplatform-backend
driver: bridge
external: true
frontend:
name: toolsplatform-frontend
driver: bridge
external: true
processing:
name: toolsplatform-processing
driver: bridge
external: true
volumes:
postgres_data: