Forum

> > Off Topic > Multiple websites in Docker container (& vhosts)
Forums overviewOff Topic overviewLog in to reply

English Multiple websites in Docker container (& vhosts)

1 reply
To the start Previous 1 Next To the start

old Multiple websites in Docker container (& vhosts)

Yates
Reviewer Off Offline

Quote
Hey,

I just started to take a look at Docker and at work we'd like to switch our little dashboard from Vagrant to Docker.

Here's what the dashboard is all about >


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
- 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
sites
have a symlink to the server
sites-enabled
folder, 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
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview