Sys-admin exercise using docker.
- Install make, git, openssh-server and filezilla:
sudo apt install make git openssh-server filezilla. - Start the ssh daemon:
sudo systemctl enable ssh --now. - Clone the repository:
git clone <repo-url>. - Copy the
.env, and*.pemfiles from the host. - Make inception install needed dependencies (only working on ubuntu based distributions):
make vm-dependencies. - Log out and log in for the groups change to take effect.
make up.
This are the environment variables that the project need in order to work. The .env file is intended to be placed in the same directory as the docker-compose.yml, this is, srcs directory.
DOMAIN=mrodrigu.42.fr
FTP_USER=ftp_user
FTP_PASSWORD=ftp_password
MAIL_USER=mail_user
MAIL_PASSWORD=mail_password
MYSQL_MAIL_USER=mysql_mail_user
MYSQL_MAIL_PASSWORD=mysql_mail_password
MYSQL_USER=mysql_user
MYSQL_PASSWORD=mysql_password
MYSQL_ROOT_USER=mrodrigu_user
MYSQL_ROOT_PASSWORD=mrodrigu_password
NETWORK_NAME=inception
SSL_CERT=cert.pem
SSL_CERT_KEY=key.pem
SSL_PASSWORD=password
STATIC_SITE_VOLUME=/home/mrodrigu/data/static
WORDPRESS_VOLUME=/home/mrodrigu/data/wordpress
MARIADB_VOLUME=/home/mrodrigu/data/mariadb
NOTE: Make sure that
SSL_CERTandSSL_CERT_KEYare relative tosrcs/requirements/nginx