Mastering Docker Third Edition, published by Packt
packtpublishing / mastering-docker-third-edition Goto Github PK
View Code? Open in Web Editor NEWMastering Docker Third Edition, published by Packt
License: MIT License
Mastering Docker Third Edition, published by Packt
License: MIT License
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.