GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing stackmark.tech — Configuration - StackMark ConfigurationCustomize StackMark behavior and manage your stacks configuration. Configuration FileStackMark stores its configuration in Location
Structure
~/.stackmark/config.json
{
"portStart": 9000,
"stacks": {
"myapp": {
"path": "/home/user/Dev/myapp",
"domain": "myapp.local",
"autostart": false,
"ports": {
"nginx": 9003,
"mysql": 9004,
"redis": 9005
}
},
"api-project": {
"path": "/home/user/Dev/api",
"autostart": true,
"ports": {
"node": 9010,
"postgres": 9011
}
}
}
}
Configuration OptionsportStartThe starting port number for automatic port allocation. Default: StackMark allocates ports sequentially starting from this number. Each service in each stack gets a unique port. stacksObject containing all registered stacks. Each stack has:
Port AllocationStackMark automatically allocates ports to avoid conflicts between stacks. How It Works
Example
docker-compose.yml (original)
services:
nginx:
ports:
- "80:80"
mysql:
ports:
- "3306:3306"
StackMark port mapping
nginx: localhost:9003 → container:80
mysql: localhost:9004 → container:3306
Your original docker-compose.yml is never modified. StackMark creates temporary override files at runtime. Environment VariablesConfigure StackMark behavior using environment variables:
Example
$ export STACKMARK_PORT_START=8000
$ stackmark add myapp
✔ Stack "myapp" registered (ports start at 8000)
Manual ConfigurationYou can edit the config file directly to:
Note: After manually editing the config, restart any running stacks for changes to take effect.
terminal
$ nano ~/.stackmark/config.json
# Make your changes...
$ stackmark restart myapp
Reset ConfigurationTo reset StackMark to default settings:
terminal
$ rm -rf ~/.stackmark
# Config will be recreated on next use
Warning: This will remove all registered stacks. You'll need to re-add them with | ||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |