Replace DynamicPress with remote-source image build
This commit is contained in:
1 parent
c53e1d8388
commit
aeba66d138
4 files changed
+22
-36
No files matched your search
@@ -1,6 +1,5 @@
|
|||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
!.env.example
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
*.log
|
*.log
|
||||||
*.key
|
*.key
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
# DynamicPress
|
# DynamicPress
|
||||||
|
|
||||||
DynamicPress serves the static website at https://dynamicpress.org using nginx.
|
DynamicPress serves its static website through unprivileged nginx, with the website assembled from private source during image build.
|
||||||
|
|
||||||
## Deployment layout
|
## Deployment layout
|
||||||
|
|
||||||
- **Compose:** `/srv/docker/dynamicpress/docker-compose.yml`
|
- **Compose:** `/srv/docker/dynamicpress/docker-compose.yml`
|
||||||
- **Static configuration/source:** `/srv/docker/dynamicpress/dynamicpress.conf`; deployed HTML is stored separately, and its authoritative source repository remains unconfirmed
|
- **Static configuration/source:** deployment configuration under `/srv/docker/dynamicpress`; application source, Dockerfile, and nginx configuration from `ssh://git@git.yoonect.com:2222/DynamicPress/dynamicpress-website.git`, branch `master`
|
||||||
- **Non-secret environment:** none
|
- **Non-secret environment:** none declared in Compose
|
||||||
- **Secrets:** none declared by this deployment
|
- **Secrets:** none at runtime; private Git builds authenticate through the operator's SSH agent
|
||||||
- **NVMe application state:** `/srv/appdata/dynamicpress/www`, containing the deployed website and mounted read-only at `/var/www/html`
|
- **NVMe application state:** none
|
||||||
- **Bulk HDD data:** none
|
- **Bulk HDD data:** none
|
||||||
- **Other mounts:** none
|
- **Other mounts:** disposable 16 MiB `/tmp` tmpfs
|
||||||
|
|
||||||
Secrets are never committed to this repository. TLS is handled outside this container by the existing reverse proxy.
|
Secrets are never committed to this repository. SSH-agent forwarding is used only for builds; TLS is handled by the existing reverse proxy.
|
||||||
|
|
||||||
## Dependencies and recovery
|
## Dependencies and recovery
|
||||||
|
|
||||||
- **Networks/dependencies:** external `npm_proxy`, fixed address `192.168.99.14`, existing reverse proxy and DNS for dynamicpress.org
|
- **Networks/dependencies:** external `npm_proxy`, fixed address `192.168.99.14`, HTTP port `8080`, existing reverse proxy and DNS for dynamicpress.org; no host-published ports. Builds require authenticated Git access and Python/nginx base images; the site generator uses Python's standard library. The image supplies a `/healthz` healthcheck.
|
||||||
- **Back up:** `/srv/appdata/dynamicpress/www` and the deployment repository; the deployed HTML must be preserved until its authoritative source and recovery process are established
|
- **Back up:** deployment and private application repositories; the owner explicitly declined a backup of the replaced website
|
||||||
- **Re-creatable:** the nginx image; the custom website cannot be recovered from that image
|
- **Re-creatable:** image `dynamicpress-website:latest`, container, generated website, and temporary files; rebuild from remote `master` with SSH forwarding and Bake permission `--allow=ssh`, retaining source revisions/image IDs for release tracking
|
||||||
+12
-13
@@ -2,22 +2,21 @@ name: dynamicpress
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
dynamicpress:
|
dynamicpress:
|
||||||
image: nginx:alpine
|
image: dynamicpress-website:latest
|
||||||
|
pull_policy: never
|
||||||
|
build:
|
||||||
|
context: ssh://git@git.yoonect.com:2222/DynamicPress/dynamicpress-website.git#master
|
||||||
|
ssh:
|
||||||
|
- default
|
||||||
container_name: dynamicpress
|
container_name: dynamicpress
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
|
||||||
- type: bind
|
|
||||||
source: /srv/appdata/dynamicpress/www
|
|
||||||
target: /var/www/html
|
|
||||||
read_only: true
|
read_only: true
|
||||||
bind:
|
tmpfs:
|
||||||
create_host_path: false
|
- /tmp:size=16m
|
||||||
- type: bind
|
cap_drop:
|
||||||
source: /srv/docker/dynamicpress/dynamicpress.conf
|
- ALL
|
||||||
target: /etc/nginx/conf.d/default.conf
|
security_opt:
|
||||||
read_only: true
|
- no-new-privileges:true
|
||||||
bind:
|
|
||||||
create_host_path: false
|
|
||||||
networks:
|
networks:
|
||||||
npm_proxy:
|
npm_proxy:
|
||||||
ipv4_address: 192.168.99.14
|
ipv4_address: 192.168.99.14
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name dynamicpress.org;
|
|
||||||
root /var/www/html;
|
|
||||||
index index.html;
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ /index.html?$query_string;
|
|
||||||
}
|
|
||||||
location ~ /\.ht {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user