Skip to content

Hosting

certaintls edited this page Jul 27, 2020 · 2 revisions

Dev and Staging

Put below containers in a shared network, e.g. certaintls

  1. Database: mariadb docker run --name mariadb -e MYSQL_ROOT_PASSWORD=XXXXXXXXX -d mariadb
  2. Application: drupal docker run --name certaintls.app -p 80:80 -v /PATH/TO/PROJECT/ROOT:/var/www -d drupal:8
  3. Caching: redis docker run --name redis -d redis
  4. Web server/proxy: caddy docker run --name caddy -p 443:443 -d caddy caddy reverse-proxy --from localhost --to certaintls.app:80

Production

  1. Replace application container with a PHP container, so in production we don't need to run both Apache and Caddy webservers
  2. TBD

Clone this wiki locally