Update paths in configuration files to use /var/lib/containers instead of /home/reudy/containers
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
parent
5c67fecd2d
commit
57776ab029
3 changed files with 7 additions and 7 deletions
10
README.md
10
README.md
|
|
@ -3,13 +3,13 @@
|
|||
This repository now includes a small helper command named panelctl for Phase 2.
|
||||
|
||||
Base directory:
|
||||
- /home/reudy/containers
|
||||
- /var/lib/containers
|
||||
|
||||
Generated structure:
|
||||
- /home/reudy/containers/stacks/<app>/compose.yaml
|
||||
- /home/reudy/containers/volumes/<app>/data
|
||||
- /home/reudy/containers/routes/<app>.caddy
|
||||
- /home/reudy/containers/state/apps/<app>.env
|
||||
- /var/lib/containers/stacks/<app>/compose.yaml
|
||||
- /var/lib/containers/volumes/<app>/data
|
||||
- /var/lib/containers/routes/<app>.caddy
|
||||
- /var/lib/containers/state/apps/<app>.env
|
||||
|
||||
Quick workflow:
|
||||
1. Create a new app definition:
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ from urllib.parse import urlparse
|
|||
PANELCTL = os.environ.get("PANELCTL_PATH", "/run/current-system/sw/bin/panelctl")
|
||||
BIND = os.environ.get("PANEL_API_BIND", "127.0.0.1")
|
||||
PORT = int(os.environ.get("PANEL_API_PORT", "9911"))
|
||||
BASE_DIR = os.environ.get("PANEL_BASE_DIR", "/home/reudy/containers")
|
||||
BASE_DIR = os.environ.get("PANEL_BASE_DIR", "/var/lib/containers")
|
||||
|
||||
INDEX_HTML = """<!doctype html>
|
||||
<html lang="en">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BASE_DIR="${PANEL_BASE_DIR:-/home/reudy/containers}"
|
||||
BASE_DIR="${PANEL_BASE_DIR:-/var/lib/containers}"
|
||||
STACKS_DIR="${BASE_DIR}/stacks"
|
||||
VOLUMES_DIR="${BASE_DIR}/volumes"
|
||||
ROUTES_DIR="${BASE_DIR}/routes"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue