Skip to content

Commit

Permalink
Merge pull request #7 from luiscoms/fix/docker-compose
Browse files Browse the repository at this point in the history
Fix/docker compose
  • Loading branch information
solderzzc authored Sep 14, 2016
2 parents 991b6fc + 768813a commit 9e96419
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ RUN apk -U --no-cache add --virtual .pgobot-dependencies wget ca-certificates ta
&& apk del .pgobot-dependencies \
&& rm -rf /var/cache/apk/* /tmp/pgobot-version

ENTRYPOINT ["python", "pokecli.py"]
CMD ["python", "pokecli.py"]
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ services:
- TZ=Etc/UTC
stdin_open: true
tty: true
bot1-pokegows:
build: .
volumes:
- ./configs:/usr/src/app/configs
- ./data:/usr/src/app/data
- ./web:/usr/src/app/web
- ./pokemongo_bot:/usr/src/app/pokemongo_bot
- ./ws_server.py:/usr/src/app/ws_server.py
environment:
- TZ=Etc/UTC
ports:
- "4000:4000"
command: ./ws_server.py
bot1-pokegoweb:
image: python:2.7-alpine
ports:
Expand Down
2 changes: 1 addition & 1 deletion ws_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"--host",
help="Host for the websocket",
type=str,
default='localhost'
default='0.0.0.0'
)
parser.add_argument(
"--port",
Expand Down

0 comments on commit 9e96419

Please sign in to comment.