mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
fix(docker-compose): rebase build contexts and env/volume paths onto apps/api and apps/web (cont'd)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+12
-10
@@ -2,9 +2,9 @@
|
||||
# $APP_NAME — Docker Compose (self-hosted)
|
||||
#
|
||||
# Prerequisites:
|
||||
# 1. Backend → cp .env-production .env and fill in all CHANGE_ME values
|
||||
# 2. Frontend → cd ../new_starr_app && cp .env.example .env → fill in values
|
||||
# → npm run build (must run BEFORE building the Docker image)
|
||||
# 1. Backend → cp apps/api/.env-production apps/api/.env and fill in all CHANGE_ME values
|
||||
# 2. Frontend → cd apps/web && cp .env.example .env → fill in values
|
||||
# → pnpm --filter web build (must run BEFORE building the Docker image)
|
||||
# 3. Run: docker compose up -d
|
||||
#
|
||||
# ⚠ SSL NOTE — db.config.js and the session store both require SSL from
|
||||
@@ -30,10 +30,12 @@ services:
|
||||
|
||||
# ── Backend (Express) ───────────────────────────────────────────────────────
|
||||
backend:
|
||||
build: .
|
||||
build:
|
||||
context: .
|
||||
dockerfile: apps/api/Dockerfile
|
||||
ports:
|
||||
- "3024:3024"
|
||||
env_file: .env
|
||||
env_file: apps/api/.env
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
@@ -44,9 +46,9 @@ services:
|
||||
restart: unless-stopped
|
||||
|
||||
# ── Frontend (React / Nginx) ─────────────────────────────────────────────────
|
||||
# Run `npm run build` inside ../new_starr_app before starting this service.
|
||||
# Run `pnpm --filter web build` before starting this service.
|
||||
frontend:
|
||||
build: ../new_starr_app
|
||||
build: ./apps/web
|
||||
ports:
|
||||
- "80:80"
|
||||
restart: unless-stopped
|
||||
@@ -86,13 +88,13 @@ services:
|
||||
image: dxflrs/garage
|
||||
entrypoint: ["/bin/sh", "/garage-init.sh"]
|
||||
volumes:
|
||||
- ./config/garage.toml:/etc/garage.toml:ro
|
||||
- ./scripts/garage-init.sh:/garage-init.sh:ro
|
||||
- ./apps/api/config/garage.toml:/etc/garage.toml:ro
|
||||
- ./apps/api/scripts/garage-init.sh:/garage-init.sh:ro
|
||||
- garage_meta:/var/lib/garage/meta
|
||||
- garage_data:/var/lib/garage/data
|
||||
ports:
|
||||
- "3900:3900"
|
||||
env_file: .env
|
||||
env_file: apps/api/.env
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "test -f /var/lib/garage/meta/.ready && garage status > /dev/null 2>&1"]
|
||||
interval: 10s
|
||||
|
||||
Reference in New Issue
Block a user