Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to create a 2nd web container in Docksal
# Web 2 (name it anything you want, doesn't have to be "web2")
web2:
extends:
file: ${HOME}/.docksal/stacks/services.yml
service: web
environment:
- APACHE_DOCUMENTROOT=/var/www/your-web2-directory
labels:
- io.docksal.virtual-host=web2.${VIRTUAL_HOST}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment