Skip to content

Logan-Developer/Simple-Docker-Web-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-Docker-Web-Server

It's a simple web server with apache, php8 mysql and phpmyadmin

Requirements

Docker and docker-compose are required, check the instructions corresponding to your Linux distribution

How to use

You can access the apache webserver at http://localhost and phpmyadmin at http://localhost:8080.

The different folders

  • Put your website(s) in the website directory, eventually in a subfolder.
  • You can put sql scripts in the dump folder, that will be executed on the MYSQL server when the container starts. (Must be stopped first)
  • You can modify the php.ini and vhost.conf files in the conf folder if you want. The configurations will be updated when the container starts. (Must be stopped first)

MySQL

MySQL is running by default on port 3306.
The default access are:

  • for user:
    • login: user
    • password: test
  • for root:
    • login: root
    • password: test

You can set new ones by modifying the environment variables in docker-compose.yml for db and phpmyadmin services.

Main commands

Build and start container

docker-compose up -d --build

Stop container

docker-compose stop

Remove stopped containers

docker-compose rm

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published