I just started to take a look at Docker and at work we'd like to switch our little dashboard from Vagrant to Docker.
Let's get to it:
My folder layout would likely be the following (I'm going to clean it so just focus on what I'd like to achieve and not on the layout, unless your solution comes with a different layout):
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
- images (docker images) - lib (contains dashboard and all its shit) - sites (contains project folders) 	- site1 		- sql (contains sql dump on database push & pull) 		- vhost (contains virtual host file) 		- www (contains actual website code) 	- site2 		- sql 		- vhost 		- www
What I would like to have is that once I start (and restart) all of the vhost files websites within
siteshave a symlink to the server
sites-enabledfolder, so we can connect with a domain name instead of an IP and port. This should be done automatically so no manual configuration should be done for each website.
I can't fully wrap my head around Docker at the moment and hope someone else knows how to create such a layout and get it to work, or someone else has a better solution.
Regards.
edited 1×, last 22.08.16 01:23:08 pm