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

Suggestion for docs: please add docker-compose instructions #13

Open
pluseg opened this issue May 23, 2020 · 0 comments
Open

Suggestion for docs: please add docker-compose instructions #13

pluseg opened this issue May 23, 2020 · 0 comments

Comments

@pluseg
Copy link

pluseg commented May 23, 2020

It's just a reminder for all people who try to run this project with docker-compose. I got errors

  • WebSocket connection to 'ws://127.0.0.1:1337/' failed: Connection closed before receiving a handshake response
  • Disconnected for Connection could not be established. with code 3

Solution: you should specify HOST=0.0.0.0 instead of 127.0.0.1.

Here is a sample docker-compose file:

version: '3.2'

services:
    web:
        build: app/docker/php
        ports:
            - 9000:9000
            - 1337:1337
        volumes:
            - ./:/var/www/html
        environment:
            SYMFONY_ENV: dev
        entrypoint: app/docker/php/docker-entrypoint.sh
    nginx:
        image: nginx:latest
        ports:
            - 80:80
        environment:
            - NGINX_PORT=80
            - WWW_DIR=/var/www/html/public
        volumes:
            - ./app/docker/nginx:/etc/nginx/conf.d
            - ./:/var/www/html
            - ./var/logs/nginx:/var/log/nginx
        command: /bin/bash -c "exec nginx -g 'daemon off;'"

networks:
    default:

I could provide files that I have in "app/docker" folder if needed. Or could create a Pull request if you'd like.

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