Making my first container template


Recommended Posts

Hey! I wanted to play around with Wordpress but I couldn't find any docker. I know I can just download MariaDB and apache and that will work fine too, but I wanted to try and make my first container template so I thought this might be a nice chance :)

 

  • I read some standard guides (quiet outdated) about creating the template but I'm a little stuck at the moment, I'm using this docker to work with. Here's what I have now and the webui works but it can't connect to the database.
  • When I'm in the webui for wordpress it asks for the database host, can I leave "localhost" here or should I manually fill my IP in here?
  • Can't I just add a variable to the docker with "WORDPRESS_DB_HOST" so people don't have to enter it in the wordpress ui? (something like this)

 

Sorry for my poor wording, if I missed any guide where I can find all this info just post it and I'll remove this.

 

edit1: just to be sure, does this docker include mysql or do I need to install it separately? 

Edited by Zero
  • Upvote 1
Link to comment

Ah, I saw someone talking about Docker Templates there so was a little confused. I will check out your guide and see if I can fix my problems on my own.

 

Would you mind linking it to me or saying in what categorie I can find it? New to this forum :)

Edited by Zero
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.