GithubHelp home page GithubHelp logo

mastering-docker-third-edition's Introduction

Mastering-Docker-Third-Edition

Mastering Docker Third Edition, published by Packt

mastering-docker-third-edition's People

Contributors

packt-itservice avatar russmckendrick avatar sharonraj123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mastering-docker-third-edition's Issues

Chapter 5 running **docker-compose up** for the example-voting-app does not work correctly

While running the docker-compose up command for the docker-compose.yml file, the postgres container fails to start:

/>  docker-compose ps
              Name                            Command               State                       Ports                    
-------------------------------------------------------------------------------------------------------------------------
db                                 docker-entrypoint.sh postgres    Exit 1                                               
example-voting-app-fork_result_1   nodemon server.js                Up       0.0.0.0:5858->5858/tcp, 0.0.0.0:5001->80/tcp
example-voting-app-fork_vote_1     python app.py                    Up       0.0.0.0:5000->80/tcp                        
example-voting-app-fork_worker_1   /bin/sh -c dotnet src/Work ...   Exit 1                                               
redis                              docker-entrypoint.sh redis ...   Up       0.0.0.0:49158->6379/tcp

This maybe due to postgres complaining about a password not being present while setting up the postgres container.

vote_1    | 172.23.0.1 - - [23/Mar/2021 17:32:09] "POST / HTTP/1.1" 200 -
vote_1    | 172.23.0.1 - - [23/Mar/2021 17:32:15] "POST / HTTP/1.1" 200 -
vote_1    | 172.23.0.1 - - [23/Mar/2021 17:32:21] "POST / HTTP/1.1" 200 -
vote_1    | 172.23.0.1 - - [23/Mar/2021 17:37:09] "POST / HTTP/1.1" 200 -
db        | Error: Database is uninitialized and superuser password is not specified.
db        |        You must specify POSTGRES_PASSWORD for the superuser. Use
db        |        "-e POSTGRES_PASSWORD=password" to set it in "docker run".
db        | 
db        |        You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
db        |        without a password. This is *not* recommended. See PostgreSQL
db        |        documentation about "trust":
db        |        https://www.postgresql.org/docs/current/auth-trust.html
result_1  | [nodemon] 2.0.7
result_1  | [nodemon] to restart at any time, enter `rs`
result_1  | [nodemon] watching path(s): *.*

Possibly the docker compose file has missing environment variables?
How should this be run?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.