-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (24 loc) · 867 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
25 lines (24 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
services:
inscript:
build:
context: .
args:
SERVER_PORT: ${SERVER_PORT}
CLIENT_PORT: ${CLIENT_PORT}
container_name: inscript-blog
user: "1000:1000"
volumes:
# 1. Mount the Parent Blog Repository root to /app
# This handles code (in /app/inscript) and data (content, static, .env)
- ../:/app/
# 2. Preserve built node_modules (prevents host overwrite)
# This must come AFTER the /app mount to take precedence
- /app/inscript/node_modules
# Enable Git Support (Uncomment if you want CMS to commit/push)
# - ${HOME:-~}/.gitconfig:/home/node/.gitconfig:ro
# - ${HOME:-~}/.ssh:/home/node/.ssh:ro
ports:
# Map ports based on .env
- "${CLIENT_PORT:-5173}:${CLIENT_PORT:-5173}"
- "${SERVER_PORT:-3001}:${SERVER_PORT:-3001}"
restart: unless-stopped