Set up a small infrastructure composed of WordPress with LEMP Stack (Nginx, MariaDB and PHP) using docker-compose.
Add docker group to login user in your virtual machine.
sudo adduser msousa docker
sudo reboot
Make your own version of the .env.example
file:
cp srcs/.env.example srcs/.env
Fill in the passwords.
Build and start project
make
Bring infrastructure down
make down
Start without re-building
make up
Hosts added as part of up
command, can be accessed via:
make hosts
Generate Certificate Authority (CA) .key
and .crt
files, server .key
and server .crt
files:
make certs
Run as part of all
command.
Manually add certificate to the browser.
Run a sh shell inside one of the containers:
make mariadb
make wordpress
make nginx
Recreate one service:
cd srcs && docker-compose up -d --force-recreate --build --no-deps nginx