Skip to content

Commit

Permalink
fix pusher-fake setup in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmbrasil committed Nov 1, 2024
1 parent dafe1f5 commit 978487f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
10 changes: 0 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,4 @@ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | b
ENV NODE_PATH ${NVM_DIR}/versions/node/v${NODE_VERSION}/lib/node_modules
ENV PATH ${NVM_DIR}/versions/node/v${NODE_VERSION}/bin:${PATH}

# Set up Pusher Fake
ENV PUSHER_PORT 8888
ENV PUSHER_WS_PORT 45449

ADD pusher-fake-entrypoint.sh /tmp/pusher-fake-entrypoint.sh

EXPOSE $PUSHER_WS_PORT $PUSHER_PORT

CMD ["/tmp/pusher-fake-entrypoint.sh"]

WORKDIR /var/app
15 changes: 7 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ services:
VIRTUAL_HOST: 'cm42-central.localhost'
VIRTUAL_PORT: 3000
MEMCACHIER_SERVERS: memcached:11211
PUSHER_APP_ID: 1234
PUSHER_WS_PORT: 45449
PUSHER_PORT: 8888
PUSHER_APP_KEY: 123456
PUSHER_APP_SECRET: 34214341
PUSHER_HOST: pusherfake
depends_on:
- postgres
- redis
Expand Down Expand Up @@ -76,14 +82,7 @@ services:
ports:
- '8888:8888' # Pusher-Fake web port
- '45449:45449' # Pusher-Fake socket port
volumes:
- .:/app
environment:
PUSHER_APP_ID: 1234
PUSHER_WS_PORT: 45449
PUSHER_PORT: 8888
PUSHER_APP_KEY: 123456
PUSHER_APP_SECRET: 34214341
command: bundle exec pusher-fake -i 1234 --socket-host 0.0.0.0 --socket-port 45499 --web-host 0.0.0.0 --web-port 8888 -k 123456 -s 34214341

volumes:
bundle_cache:
Expand Down
3 changes: 0 additions & 3 deletions pusher-fake-entrypoint.sh

This file was deleted.

0 comments on commit 978487f

Please sign in to comment.