Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chicongst/socket-server-docker

Docker-compose for Laravel Echo Server
https://github.com/chicongst/socket-server-docker

echo-server redis

Last synced: about 2 months ago
JSON representation

Docker-compose for Laravel Echo Server

Awesome Lists containing this project

README

        

## Docker Compose for Laravel Echo Server
### Preparing
```
cp .env.example .env
docker-compose build
docker-compose up
```
### Checking

```
# Check docker containers are running
docker ps
# Access to container
docker exec -it [container_id] /bin/bash
```

### Connecting
- Local connect to Redis
- Redis host: 10.10.10.2
- Redis port: {REDIS_PORT} in ENV

- Local connect to Echo server
- Echo host: http://localhost:{ECHO_PORT}

- Echo server connect to Redis
- Redis host: 10.10.10.2
- Redis port: 6379
### Flow

![How-it-work](image-work.png)