initial version (of an old wp instance...)

This commit is contained in:
2025-11-20 22:25:00 +01:00
commit 8f740f2251
5 changed files with 91 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
wordpress/
.env
httppasswd.txt

39
docker-compose.yml Normal file
View File

@@ -0,0 +1,39 @@
---
services:
wordpress:
image: wordpress:6.8.3-php8.4-fpm-alpine
build:
context: docker_files/wordpress
container_name: fotoistin_20251103-wordpress
restart: unless-stopped
env_file: .env
environment:
WORDPRESS_DB_HOST: "$MYSQL_DB_HOST"
WORDPRESS_DB_USER: "$MYSQL_USER"
WORDPRESS_DB_PASSWORD: "$MYSQL_PASSWORD"
WORDPRESS_DB_NAME: "$MYSQL_DATABASE"
WORDPRESS_SKIP_INSTALL: "true"
volumes:
- ./wordpress:/var/www/html
networks:
- wordpress
- wordpress-db
webserver:
depends_on:
- wordpress
image: nginx:1.29.3-alpine
container_name: fotoistin_20251103-nginx
restart: unless-stopped
ports:
- "127.0.0.1:13025:80"
volumes:
- ./wordpress:/var/www/html
- ./nginx-config:/etc/nginx/conf.d
networks:
- wordpress
networks:
wordpress:
driver: bridge
wordpress-db:
external: true

View File

@@ -0,0 +1 @@
gate:$2b$12$MjzirA7j.wRrLPIvRuNMVevcC4Tao5s12InEfRcP4i.m5SPeRKXwS

45
nginx-config/nginx.conf Normal file
View File

@@ -0,0 +1,45 @@
server {
listen 80;
listen [::]:80;
server_name staging.fotoistin.de;
index index.php index.html index.htm;
root /var/www/html;
location / {
try_files $uri $uri/ /index.php$is_args$args;
auth_basic "restricted area";
auth_basic_user_file /etc/nginx/conf.d/http_password.dat;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass wordpress:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location ~ /\.ht {
deny all;
}
location = /favicon.ico {
log_not_found off; access_log off;
}
location = /robots.txt {
log_not_found off; access_log off; allow all;
}
location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
expires max;
log_not_found off;
}
}

3
wp_install.txt Normal file
View File

@@ -0,0 +1,3 @@
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp