Wordpress Application Error (Dockerfile + 6.4.3-fpm)
Please help
I need to deploy many Wordpress installs for a migration and I was consideirng using Railway but struggling just to get a simple Dockerfile + Repo setup going (this is needed to copy across the wp-content etc afaik)
(CC @Jack as I know you've done a few WP Templates on Railway so I'd appreciate your help)
I'm getting
Project ID:
Application failed to respond
I'm not sure if I need to do anything around putting the apache2-foreground entrypoint here
The Dockerfile is really simple for now just
I've defined all the Env Vars using service Variables in the Repo Service.Project ID:
d7998c4d-22a2-4b65-9f46-34e8ebdc4711
Deploy Logs:
23 Replies
Project ID:
d7998c4d-22a2-4b65-9f46-34e8ebdc4711
I noticed this which seems to be doing some things around:
but
my deploy shows it's "Working"
https://github.com/jdjjd6262/G5gffttccyy/blob/main/Dockerfile
A template which enables a default WP + wp-content etc setup would be really wonderful. They all seem to be different apprioaches, with MariaDB etc. so am figuring it out from scratch (Also best way to learn maybe)
jack's wordpress templates have a
PORT
service variable set to 80
have you tried this?oh no maybe I didn't see that
let me try it, thanks for the quick reply
Maybe I also make a template of this when i'm done
may i ask what does your would do differently/better than jacks?
yes, seems the icon is missing haha, but besides that
yeah tbh the icon put me off slightly like (maybe this is broken) and the Docs have some
n8n
placeholder text probably a copy paste of a Readme
Immediately when I saw MariaDB given that I'm going to be migrating many domains over from MySQL I felt I didn't want that headache
But I agree it looks solid
I'm still getting Application failed to respond
after a re-deployThings like DB_HOST are configured with
${{MySQL.MYSQLHOST}}:${{MySQL.MYSQLPORT}}
he used an image from the discord cdn it seems š«¤
where is there mention of n8n?
thats funny, it was a quick template spun up to help a user migrate from a dockerfile wordpress deploy to a image deploy
Maybe it has something to do with the docker image
Perhaps I should just go with wordpress:latest as your templates seem to use but I'd prefer to version lock
you can version lock, whats your start command though?
ah I have nothing there š¦
somehow assumed that was npm related
try the same start command jack's template has, the template with the missing icon
yeah I just deployed the template and I'm going to go over everything sorry
yeah it was that
/bin/bash -c "echo 'ServerName 0.0.0.0' >> /etc/apache2/apache2.conf && echo 'DirectoryIndex index.php index.html' >> /etc/apache2/apache2.conf && echo 'upload_max_filesize = 50M' >> /usr/local/etc/php/php.ini && echo 'post_max_size = 50M' >> /usr/local/etc/php/php.ini && docker-entrypoint.sh apache2-foreground"
can you not restore a mysql database to a maria database?
The other reason to not use Jack's repo was that I needed the wordpress install to be able to run locally with a DB connection to the staging env in Railway DB so that when changes are pushed locally to staging branches CI/CD can take care of the rest
The impression I got from the Template was that it was loading the Docker image from the registry
And I wasn't sure how I would extend this to COPY wp-content into the container
(perhaps I'm missing something here)
OK so It appears I need to use the same docker verison. The apache2.conf may not be available in the image I am using
ok thanks Brody! It's up and running
FROM wordpress:6.4.3-php8.3-fpm-alpine
This didn't work with that start command
the start command appears to depend on -apache2 tagged images
Thank you for the great questions!
š¦šhappy to help where i can!