I need helps multyple sites settings in dockerHow is Docker different from a virtual machine?Should I use Vagrant or Docker for creating an isolated environment?How to list containers in DockerHow to get a Docker container's IP address from the host?How to remove old Docker containersCopying files from Docker container to hostCopying files from host to Docker containerHow to correctly link php-fpm and Nginx Docker containers?How to mount a single file in a volumeDocker container killed after Ctrl +C
What is the difference between an astronaut in the ISS and a freediver in perfect neutral buoyancy?
Is it acceptable to say that a reviewer's concern is not going to be addressed because then the paper would be too long?
Received a package but didn't order it
What are the consequences of high orphan block rate?
Quick Yajilin Puzzles: Scatter and Gather
Why was LOGO created?
Does every piano need tuning every year?
What are the moistened wrapped towelettes called in restaurants?
Cut a cake into 3 equal portions with only a knife
Youtube not blocked by iptables
Does the Ranger Planar Warrior bypass resistance to non magical attacks
Why does (inf + 0j)*1 evaluate to inf + nanj?
What should I consider when deciding whether to delay an exam?
How can an attacker use robots.txt?
Does the Way of Shadow monk's Shadow Step feature count as a magical ability?
Does "as soon as" imply simultaneity?
Excel Solver linear programming - Is it possible to use average of values as a constraint without #DIV/0! errors or sacrificing linearity?
Why does C++ have 'Undefined Behaviour' and other languages like C# or Java don't?
Is it impolite to ask for an in-flight catalogue with no intention of buying?
How to deal with a Homophobic PC
Why is a road bike faster than a city bike with the same effort? & how much faster it can be?
Subverting the emotional woman and stoic man trope
Is differentiation as a map discontinuous?
What is the white pattern on trim wheel for?
I need helps multyple sites settings in docker
How is Docker different from a virtual machine?Should I use Vagrant or Docker for creating an isolated environment?How to list containers in DockerHow to get a Docker container's IP address from the host?How to remove old Docker containersCopying files from Docker container to hostCopying files from host to Docker containerHow to correctly link php-fpm and Nginx Docker containers?How to mount a single file in a volumeDocker container killed after Ctrl +C
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want run few sites in docker.
I've run into a problem.
I have scheme
site1
--api
--web
site2
--api
--web
site3
--api
--web
I have a docker-compose file
services:
web_app1:
container_name:site1
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./:/var/www/site1
- ./hosts:/etc/nginx/conf.d
- ./logs:/var/log/nginx
web_app2:
container_name:site2
image: nginx:latest
ports:
- "81:80"
- "444:443"
volumes:
- ./:/var/www/site2
- ./hosts:/etc/nginx/conf.d
- ./logs:/var/log/nginx
web_app3:
container_name:site3
image: nginx:latest
ports:
- "82:80"
- "445:443"
volumes:
- ./:/var/www/site3
- ./hosts:/etc/nginx/conf.d
- ./logs:/var/log/nginx
php:
container_name: php
build: ./images/php
volumes:
- ./:/var/www/test
But it don't work
docker docker-compose dockerfile
add a comment
|
I want run few sites in docker.
I've run into a problem.
I have scheme
site1
--api
--web
site2
--api
--web
site3
--api
--web
I have a docker-compose file
services:
web_app1:
container_name:site1
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./:/var/www/site1
- ./hosts:/etc/nginx/conf.d
- ./logs:/var/log/nginx
web_app2:
container_name:site2
image: nginx:latest
ports:
- "81:80"
- "444:443"
volumes:
- ./:/var/www/site2
- ./hosts:/etc/nginx/conf.d
- ./logs:/var/log/nginx
web_app3:
container_name:site3
image: nginx:latest
ports:
- "82:80"
- "445:443"
volumes:
- ./:/var/www/site3
- ./hosts:/etc/nginx/conf.d
- ./logs:/var/log/nginx
php:
container_name: php
build: ./images/php
volumes:
- ./:/var/www/test
But it don't work
docker docker-compose dockerfile
can you provide some more information about the problem you have been running into? do you get any error messages?
– Efrat Levitan
Mar 28 at 23:09
there are no errors. I'm trying to figure out how to run a 2.3 site in docker. to all through 80 port has been going
– bellator001
Mar 29 at 13:10
add a comment
|
I want run few sites in docker.
I've run into a problem.
I have scheme
site1
--api
--web
site2
--api
--web
site3
--api
--web
I have a docker-compose file
services:
web_app1:
container_name:site1
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./:/var/www/site1
- ./hosts:/etc/nginx/conf.d
- ./logs:/var/log/nginx
web_app2:
container_name:site2
image: nginx:latest
ports:
- "81:80"
- "444:443"
volumes:
- ./:/var/www/site2
- ./hosts:/etc/nginx/conf.d
- ./logs:/var/log/nginx
web_app3:
container_name:site3
image: nginx:latest
ports:
- "82:80"
- "445:443"
volumes:
- ./:/var/www/site3
- ./hosts:/etc/nginx/conf.d
- ./logs:/var/log/nginx
php:
container_name: php
build: ./images/php
volumes:
- ./:/var/www/test
But it don't work
docker docker-compose dockerfile
I want run few sites in docker.
I've run into a problem.
I have scheme
site1
--api
--web
site2
--api
--web
site3
--api
--web
I have a docker-compose file
services:
web_app1:
container_name:site1
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./:/var/www/site1
- ./hosts:/etc/nginx/conf.d
- ./logs:/var/log/nginx
web_app2:
container_name:site2
image: nginx:latest
ports:
- "81:80"
- "444:443"
volumes:
- ./:/var/www/site2
- ./hosts:/etc/nginx/conf.d
- ./logs:/var/log/nginx
web_app3:
container_name:site3
image: nginx:latest
ports:
- "82:80"
- "445:443"
volumes:
- ./:/var/www/site3
- ./hosts:/etc/nginx/conf.d
- ./logs:/var/log/nginx
php:
container_name: php
build: ./images/php
volumes:
- ./:/var/www/test
But it don't work
docker docker-compose dockerfile
docker docker-compose dockerfile
asked Mar 28 at 17:32
bellator001bellator001
12 bronze badges
12 bronze badges
can you provide some more information about the problem you have been running into? do you get any error messages?
– Efrat Levitan
Mar 28 at 23:09
there are no errors. I'm trying to figure out how to run a 2.3 site in docker. to all through 80 port has been going
– bellator001
Mar 29 at 13:10
add a comment
|
can you provide some more information about the problem you have been running into? do you get any error messages?
– Efrat Levitan
Mar 28 at 23:09
there are no errors. I'm trying to figure out how to run a 2.3 site in docker. to all through 80 port has been going
– bellator001
Mar 29 at 13:10
can you provide some more information about the problem you have been running into? do you get any error messages?
– Efrat Levitan
Mar 28 at 23:09
can you provide some more information about the problem you have been running into? do you get any error messages?
– Efrat Levitan
Mar 28 at 23:09
there are no errors. I'm trying to figure out how to run a 2.3 site in docker. to all through 80 port has been going
– bellator001
Mar 29 at 13:10
there are no errors. I'm trying to figure out how to run a 2.3 site in docker. to all through 80 port has been going
– bellator001
Mar 29 at 13:10
add a comment
|
1 Answer
1
active
oldest
votes
The default port for Nginx docker image is 80 and not 443. Try to remove 443 mapping from your docker-compose.yml file
Or
If you want to run your container on 443, change the config in Nginx.conf from 80 to 443 and remove 80 port mapping from docker-compose file
add a comment
|
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403716%2fi-need-helps-multyple-sites-settings-in-docker%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The default port for Nginx docker image is 80 and not 443. Try to remove 443 mapping from your docker-compose.yml file
Or
If you want to run your container on 443, change the config in Nginx.conf from 80 to 443 and remove 80 port mapping from docker-compose file
add a comment
|
The default port for Nginx docker image is 80 and not 443. Try to remove 443 mapping from your docker-compose.yml file
Or
If you want to run your container on 443, change the config in Nginx.conf from 80 to 443 and remove 80 port mapping from docker-compose file
add a comment
|
The default port for Nginx docker image is 80 and not 443. Try to remove 443 mapping from your docker-compose.yml file
Or
If you want to run your container on 443, change the config in Nginx.conf from 80 to 443 and remove 80 port mapping from docker-compose file
The default port for Nginx docker image is 80 and not 443. Try to remove 443 mapping from your docker-compose.yml file
Or
If you want to run your container on 443, change the config in Nginx.conf from 80 to 443 and remove 80 port mapping from docker-compose file
answered Mar 29 at 7:53
Shubham AggarwalShubham Aggarwal
453 bronze badges
453 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403716%2fi-need-helps-multyple-sites-settings-in-docker%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
can you provide some more information about the problem you have been running into? do you get any error messages?
– Efrat Levitan
Mar 28 at 23:09
there are no errors. I'm trying to figure out how to run a 2.3 site in docker. to all through 80 port has been going
– bellator001
Mar 29 at 13:10