You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When starting application with docker-compose up -d, both vote and result services do not work.
Steps to reproduce the issue, if relevant:
docker-compose up -d
docker-compose ps
Describe the results you received:
$ docker-compose ps
Name Command State Ports
---------------------------------------------------------------------------------------------------
db docker-entrypoint.sh postgres Up 5432/tcp
examplevotingappmaster_result_1 nodemon server.js Exit 0
examplevotingappmaster_vote_1 python app.py Exit 2
examplevotingappmaster_worker_1 /bin/sh -c dotnet src/Work ... Up
redis docker-entrypoint.sh redis ... Up 0.0.0.0:32770->6379/tcp
Describe the results you expected: examplevotingappmaster_result_1 and examplevotingappmaster_vote_1 containers should be in up state.
Additional information you deem important (e.g. issue happens only occasionally):
Here is the result of docker-compose logs command (db & redis services omitted for clarity)
Attaching to examplevotingappmaster_worker_1, db, examplevotingappmaster_result_1, redis, examplevotingappmaster_vote_1
worker_1 | Waiting for db
worker_1 | Connected to db
worker_1 | Connecting to redis
worker_1 | Found redis at 172.19.0.2
vote_1 | python: can't open file 'app.py': [Errno 2] No such file or directory
result_1 | Usage: nodemon [nodemon options] [script.js] [args]
result_1 |
result_1 | See "nodemon --help" for more.
result_1 |
result_1 | Usage: nodemon [nodemon options] [script.js] [args]
Output of docker version:
Client:
Version: 17.10.0-ce
API version: 1.33
Go version: go1.8.3
Git commit: f4ffd25
Built: Tue Oct 17 19:00:02 2017
OS/Arch: windows/amd64
Server:
Version: 17.11.0-ce
API version: 1.34 (minimum version 1.12)
Go version: go1.8.5
Git commit: 1caf76c
Built: Mon Nov 20 18:39:28 2017
OS/Arch: linux/amd64
Experimental: false
Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):
Running Docker Toolbox on Windows 8.1
The text was updated successfully, but these errors were encountered:
I resolved that issue.I couldn't understand why we have experienced this issue but my solution worked. =) My docker-compose.yml is below.You could use them if you want.
Description
When starting application with
docker-compose up -d
, both vote and result services do not work.Steps to reproduce the issue, if relevant:
docker-compose up -d
docker-compose ps
Describe the results you received:
Describe the results you expected:
examplevotingappmaster_result_1 and examplevotingappmaster_vote_1 containers should be in up state.
Additional information you deem important (e.g. issue happens only occasionally):
Here is the result of
docker-compose logs
command (db & redis services omitted for clarity)Output of
docker version
:Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):
Running Docker Toolbox on Windows 8.1
The text was updated successfully, but these errors were encountered: