Fix: serversideup-konform - Port 8080, /etc/entrypoint.d/
Nach Dokumentation recherchiert:
- Kein ENTRYPOINT override (serversideup hat eigenen)
- Scripts nach /etc/entrypoint.d/ mit 755
- Port 8080 statt 80
- Healthcheck auf /healthcheck Endpoint
- USER www-data am Ende (serversideup Standard)
Quelle: serversideup.net/open-source/docker-php/docs
🤖 Generated with Claude Code
This commit is contained in:
27
entrypoint.d/10-create-env.sh
Normal file
27
entrypoint.d/10-create-env.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
# Erstellt .env aus Docker Environment Variables
|
||||
# Numerisches Prefix 10- = frueh ausfuehren
|
||||
|
||||
ENV_FILE="/var/www/html/.env"
|
||||
|
||||
if [ ! -f "$ENV_FILE" ]; then
|
||||
cat > "$ENV_FILE" << EOF
|
||||
WP_ENV=${WP_ENV:-production}
|
||||
WP_HOME=${WP_HOME}
|
||||
WP_SITEURL=${WP_SITEURL}
|
||||
DB_NAME=${DB_NAME}
|
||||
DB_USER=${DB_USER}
|
||||
DB_PASSWORD=${DB_PASSWORD}
|
||||
DB_HOST=${DB_HOST}
|
||||
WP_REDIS_HOST=${WP_REDIS_HOST:-redis}
|
||||
AUTH_KEY=${AUTH_KEY}
|
||||
SECURE_AUTH_KEY=${SECURE_AUTH_KEY}
|
||||
LOGGED_IN_KEY=${LOGGED_IN_KEY}
|
||||
NONCE_KEY=${NONCE_KEY}
|
||||
AUTH_SALT=${AUTH_SALT}
|
||||
SECURE_AUTH_SALT=${SECURE_AUTH_SALT}
|
||||
LOGGED_IN_SALT=${LOGGED_IN_SALT}
|
||||
NONCE_SALT=${NONCE_SALT}
|
||||
EOF
|
||||
echo "[entrypoint] .env created"
|
||||
fi
|
||||
Reference in New Issue
Block a user