Standardize uhleloX deployment layout
This commit is contained in:
commit
178c602d4c
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 @@
|
||||
# UhleloX
|
||||
|
||||
UhleloX serves the static website at https://uhlelox.com using nginx.
|
||||
|
||||
## Deployment layout
|
||||
|
||||
- **Compose:** `/srv/docker/uhlelox/docker-compose.yml`
|
||||
- **Static configuration/source:** `/srv/docker/uhlelox/uhlelox.conf`; application source tracking is pending
|
||||
- **Non-secret environment:** none
|
||||
- **Secrets:** none declared by this deployment
|
||||
- **NVMe application state:** `/srv/appdata/uhlelox/www`, containing the deployed website and bundled assets, 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.12`, existing reverse proxy and DNS for uhlelox.com
|
||||
- **Back up:** `/srv/appdata/uhlelox/www` and the deployment repository; the website currently has no separate source repository
|
||||
- **Re-creatable:** the nginx image; the custom website and bundled assets cannot be recovered from that image
|
||||
@@ -0,0 +1,27 @@
|
||||
name: uhlelox
|
||||
|
||||
services:
|
||||
uhlelox:
|
||||
image: nginx:alpine
|
||||
container_name: uhlelox
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /srv/appdata/uhlelox/www
|
||||
target: /var/www/html
|
||||
read_only: true
|
||||
bind:
|
||||
create_host_path: false
|
||||
- type: bind
|
||||
source: /srv/docker/uhlelox/uhlelox.conf
|
||||
target: /etc/nginx/conf.d/default.conf
|
||||
read_only: true
|
||||
bind:
|
||||
create_host_path: false
|
||||
networks:
|
||||
npm_proxy:
|
||||
ipv4_address: 192.168.99.12
|
||||
|
||||
networks:
|
||||
npm_proxy:
|
||||
external: true
|
||||
@@ -0,0 +1,12 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name uhlelox.com;
|
||||
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