| Container Name | Use |
|---|---|
| site | Data-only container |
| mariadb | Docker image: MariaDB Uses ./databases folder to store MariaDB's databases |
| apache | Docker image: Debian |
| builder | Docker image: Ubuntu 16.04 Main container used to prepare website and install Symfony's dependencies for apache Contains:
|
| smtp | Docker image: djfarrelly/maildev Container with Maildev to catch mails sent by Symfony to a webpage. Access the MailDev webpage with host:1080. |
| memcached | Docker image: Memcached |
The logs are saved in logs folder.
logs/apache/: Logs for apache2
The website folder is site.
The database folder is databases.
In order to configure containers properly, you must:
- Edit file
site/app/config/parameters.yml.distline 4, replace127.0.0.1bymariadb; - Edit file
site/app/config/parameters.yml.distline 13, replace127.0.0.1bysmtp; - Edit file
site/app/config/config.ymlline 150, replacelocalhostby"%mailer_host%"; - Edit file
site/app/config/parameters.yml.distline 16, replace587by25if you would like to use MailDev.
Ports configuration:
| Host port | Container port | Container |
|---|---|---|
| 80 | 80 | apache |
| 3306 | 3306 | mariadb |
| 1080 | 80 | maildev |
| 11211 | 11211 | memcached |
- If you want to launch container's creation, execute
make install; - If you want to import a database dump, copy the carizy.sql file to the
sitefolder. Then launchmake import-database; - If you want to execute a command in the environment launch, launch
make executeto access the container.