Initial commit: complete WebsiteBox project
Docker-based self-hosted WordPress deployment system with: - Four-container stack (nginx, wordpress/php-fpm, mariadb, certbot) - Automatic SSL via Let's Encrypt with self-signed fallback - First-boot WordPress setup via WP-CLI (GeneratePress + child theme, plugins) - Interactive setup wizard and one-line install script - Backup, update, healthcheck, and SSL renewal scripts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
20
nginx/Dockerfile
Normal file
20
nginx/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
certbot \
|
||||
openssl \
|
||||
inotify-tools \
|
||||
bash
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY wordpress.conf /etc/nginx/conf.d/default.conf
|
||||
COPY wordpress-ssl.conf /etc/nginx/conf.d/wordpress-ssl.conf.disabled
|
||||
COPY ssl-params.conf /etc/nginx/snippets/ssl-params.conf
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
mkdir -p /etc/nginx/snippets /var/www/certbot /var/run/certbot-signal
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user