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;








-1















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










share|improve this question
























  • 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

















-1















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










share|improve this question
























  • 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













-1












-1








-1








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










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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












1 Answer
1






active

oldest

votes


















0
















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






share|improve this answer



























    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
    );



    );














    draft saved

    draft discarded
















    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









    0
















    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






    share|improve this answer





























      0
















      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






      share|improve this answer



























        0














        0










        0









        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






        share|improve this answer













        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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 29 at 7:53









        Shubham AggarwalShubham Aggarwal

        453 bronze badges




        453 bronze badges

































            draft saved

            draft discarded















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현