-
Notifications
You must be signed in to change notification settings - Fork 2
Hosting
certaintls edited this page Jul 27, 2020
·
2 revisions
Put below containers in a shared network, e.g. certaintls
- Database: mariadb
docker run --name mariadb -e MYSQL_ROOT_PASSWORD=XXXXXXXXX -d mariadb - Application: drupal
docker run --name certaintls.app -p 80:80 -v /PATH/TO/PROJECT/ROOT:/var/www -d drupal:8 - Caching: redis
docker run --name redis -d redis - Web server/proxy: caddy
docker run --name caddy -p 443:443 -d caddy caddy reverse-proxy --from localhost --to certaintls.app:80
- Replace application container with a PHP container, so in production we don't need to run both Apache and Caddy webservers
- TBD