Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hxldash-docker docker-compose.yml file otimized for local development (with minimal documentation) #3

Open
fititnt opened this issue Apr 3, 2020 · 1 comment

Comments

@fititnt
Copy link
Member

fititnt commented Apr 3, 2020

This issue is about write both an docker-compose.yml and the bare minimum documentation to help who just want to run a local copy of the hxldash (like a fork or a simple downloaded folder) and be able to test changes on the front-end part of the code.

@fititnt
Copy link
Member Author

fititnt commented Apr 4, 2020

Humm... It works from http://127.0.0.1:8000 inside the container, but it refuses from outside http://127.0.0.1:8000 with default port forward, the container does not accept. Makes sense.

# fititnt at bravo in /alligo/code/covid-taskforce-cplp/hxldash-docker on git:master x [22:11:50]
$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
1e792e24e96c        8f2297a01c6a        "/docker-entrypoint.…"   46 minutes ago      Up 16 minutes       0.0.0.0:8000->8000/tcp   hxldash-docker_hxldash_1
27077da15929        nginxdemos/hello    "nginx -g 'daemon of…"   About an hour ago   Up About an hour    0.0.0.0:10240->80/tcp    mystifying_grothendieck

# fititnt at bravo in /alligo/code/covid-taskforce-cplp/hxldash-docker on git:master x [22:11:55]
$ curl -I http://localhost:10240
HTTP/1.1 200 OK
Server: nginx/1.13.8
Date: Sat, 04 Apr 2020 01:12:23 GMT
Content-Type: text/html
Connection: keep-alive
Expires: Sat, 04 Apr 2020 01:12:22 GMT
Cache-Control: no-cache


# fititnt at bravo in /alligo/code/covid-taskforce-cplp/hxldash-docker on git:master x [22:12:23]
$ curl -I http://localhost:8000 
curl: (56) Recv failure: Conexão fechada pela outra ponta

# fititnt at bravo in /alligo/code/covid-taskforce-cplp/hxldash-docker on git:master x [22:12:28]
$ docker-compose exec hxldash bash
root@1e792e24e96c:/usr/src/app# curl -I http://127.0.0.1:8000/
HTTP/1.0 200 OK
Date: Sat, 04 Apr 2020 01:13:43 GMT
Server: WSGIServer/0.1 Python/2.7.17
X-Frame-Options: SAMEORIGIN
Content-Type: text/html; charset=utf-8
Content-Length: 8454

root@1e792e24e96c:/usr/src/app# 

Maybe is this issue https://pythonspeed.com/articles/docker-connection-refused/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant