Standardize DynamicPress deployment layout
This commit is contained in:
commit
c53e1d8388
4 files changed
+69
No files matched your search
@@ -0,0 +1,9 @@
|
|||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
.DS_Store
|
||||||
|
*.log
|
||||||
|
*.key
|
||||||
|
*.pem
|
||||||
|
secrets/
|
||||||
|
www/
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
# DynamicPress
|
||||||
|
|
||||||
|
DynamicPress serves the static website at https://dynamicpress.org using nginx.
|
||||||
|
|
||||||
|
## Deployment layout
|
||||||
|
|
||||||
|
- **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
|
||||||
|
- **Non-secret environment:** none
|
||||||
|
- **Secrets:** none declared by this deployment
|
||||||
|
- **NVMe application state:** `/srv/appdata/dynamicpress/www`, containing the deployed website and mounted read-only at `/var/www/html`
|
||||||
|
- **Bulk HDD data:** none
|
||||||
|
- **Other mounts:** none
|
||||||
|
|
||||||
|
Secrets are never committed to this repository. TLS is handled outside this container by the existing reverse proxy.
|
||||||
|
|
||||||
|
## Dependencies and recovery
|
||||||
|
|
||||||
|
- **Networks/dependencies:** external `npm_proxy`, fixed address `192.168.99.14`, existing reverse proxy and DNS for dynamicpress.org
|
||||||
|
- **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
|
||||||
|
- **Re-creatable:** the nginx image; the custom website cannot be recovered from that image
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
name: dynamicpress
|
||||||
|
|
||||||
|
services:
|
||||||
|
dynamicpress:
|
||||||
|
image: nginx:alpine
|
||||||
|
container_name: dynamicpress
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- type: bind
|
||||||
|
source: /srv/appdata/dynamicpress/www
|
||||||
|
target: /var/www/html
|
||||||
|
read_only: true
|
||||||
|
bind:
|
||||||
|
create_host_path: false
|
||||||
|
- type: bind
|
||||||
|
source: /srv/docker/dynamicpress/dynamicpress.conf
|
||||||
|
target: /etc/nginx/conf.d/default.conf
|
||||||
|
read_only: true
|
||||||
|
bind:
|
||||||
|
create_host_path: false
|
||||||
|
networks:
|
||||||
|
npm_proxy:
|
||||||
|
ipv4_address: 192.168.99.14
|
||||||
|
|
||||||
|
networks:
|
||||||
|
npm_proxy:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
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