diff --git a/Dockerfile b/Dockerfile index ce2c17c..1f05927 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,10 @@ FROM node:alpine RUN apk add bash RUN npm install -g laravel-echo-server +WORKDIR /home/node/app + +COPY . . + EXPOSE 6001 -CMD laravel-echo-server start --dir=/home/node/app/config/ \ No newline at end of file +CMD laravel-echo-server start --dir=/home/node/app/config \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 3d50f00..7d364a6 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,12 +5,6 @@ services: build: . container_name: app tty: true - working_dir: /home/node/app - environment: - - LARAVEL_ECHO_SERVER_HOST=localhost - - LARAVEL_ECHO_SERVER_REDIS_HOST=redis - volumes: - - ./:/home/node/app networks: - app-network redis: