Skip to content

A sample nginx server that runs wordpress, phpMyAdmin, and an SQL database in a single Docker container.

Notifications You must be signed in to change notification settings

AuroraSloan/ft_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft_server

This is a sample nginx server that runs wordpress, phpMyAdmin, and an SQL database in a single docker container.
It is only a sample and should not be used in production.

This sample server uses a self-signed SSL certificate and is run with autoindex that can be disabled.

Due to security features and use of localhost, google chrome may not work. It is recommended to use firefox.


Installation

git clone https://github.com/AuroraSloan/ft_server.git

Usage

Run the build.sh file to build the image and run the container.

With autoindex

bash build.sh

Without autoindex

bash build.sh -off

Features

Open firefox and proceed to localhost:8080. Since the SSL certificate is self-signed, you will need to click Advanced and Accept the Risk and Continue to access the above services.
security warning image

Now you will be viewing either the autoindex page or general nginx index page depending on whether or not you chose to run the server with autoindex.
autoindex page image

When first accessing https://localhost/wordpress, you will be redirected to a setup page. After you create the 'Site Title', 'Username', 'password', 'Email', etc to your liking, click Install WordPress. Now log in as the user you just created.
From here on, the wordpress dashboard is located at https://localhost/wordpress/wp-admin.
wordpress install image

After setting up wordpress, the database should be ready to go. Open a new tab and go to https://localhost/phpmyadmin.
The phpmyadmin loging information for this sample server is:
username: 'superuser' and password: 'password'.
Again, this is not secure and is only meant to be a sample of how such a server would be set up.
After logging in, you will be able to see the database created for this server 'ft_server_db' with all necessary tables.
phpmyadmin hompage image

To see the sample site, go to https://localhost/wordpress. Here or at https://localhost/wordpress/wp-admin, you can create posts, comments, pages, etc.
wordpress site

After updating the site, you can refresh your phpmyadmin page and see the updated database tables.
phpmyadmin posts table image

There are many things you can do as phpmyadmin and wordpress have been fully configured. Enjoy!

When you are finished, run the quit.sh file to stop the container and remove the image and container.

bash quit.sh

For more information on how to use docker and deal with containers and images, check out the wiki page.
Wiki


Reference Images

SSL

SSL

INDEX

INDEX

WORDPRESS

WORDPRESS

PHPMYADMIN

PHPMYADMIN

SITE

SITE

TABLE

TABLE

About

A sample nginx server that runs wordpress, phpMyAdmin, and an SQL database in a single Docker container.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published