Skip to content

Fkhalilullin/docker-compose-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-compose-project

project of 42 school where it is necessary to create LEMP via docker-compose on localhost.

the linked docker network consists of several services like nginx with TLSv1.3 protocol, wordpress + php-fpm and mariaDB.

each service runs in a separate container with a custom dockerfile.

also services have volumes on the server for data safety.

how to use

before launching docker and docker-compose should be installed.

hostname, password and username for mysql you can find in the .env file.

to launch the project:

make

go to the site https://127.0.0.1 to see starting wp page.

to check wp admin dashboard:

in wordpress database, there are two users, one of them is the administrator.

visit https://127.0.0.1/wp-login.php

to check mysql:

enter mysql container to see existing users.

docker exec -it mariadb sh
mysql -h mariadb -u mteressa -p
use wordpress;
select * from wp_users;

to stop the project:

the next command will also delete all docker images, pay attention.

make fclean
sudo rm -rf ../../../mteressa

About

Implementation a LEMP web server through docker-compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published