Created
December 29, 2022 11:37
-
-
Save michalkorzawski/91792cde62e411860118ba8043288075 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.3" | |
x-image-build: &image_build | |
env_file: .env | |
build: | |
context: . | |
dockerfile: Dockerfile.development | |
stdin_open: true | |
tty: true | |
services: | |
< db service > | |
< redis service > | |
< sidekiq service > | |
< jsbundling-rails service > | |
< cssbundling-rails service > | |
ws: | |
image: anycable/anycable-go:1.2 | |
ports: | |
- '8085:8085' | |
environment: | |
ANYCABLE_HOST: "0.0.0.0" | |
ANYCABLE_REDIS_URL: redis://redis:6379/0 | |
ANYCABLE_RPC_HOST: anycable:50051 | |
ANYCABLE_DEBUG: 1 | |
ANYCABLE_PORT: 8085 | |
depends_on: | |
redis: | |
condition: service_healthy | |
anycable: | |
<<: *image_build | |
command: bundle exec anycable | |
environment: | |
ANYCABLE_REDIS_URL: redis://redis:6379 | |
ANYCABLE_RPC_HOST: 0.0.0.0:50051 | |
ANYCABLE_DEBUG: 1 | |
ports: | |
- '50051:50051' | |
depends_on: | |
- db | |
- ws | |
web: | |
<<: *image_build | |
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -e development -p 3000 -b '0.0.0.0'" | |
volumes: | |
- .:/app_name:cached | |
- bundle_cache:/bundle | |
ports: | |
- "3000:3000" | |
depends_on: | |
- db | |
- redis | |
- sidekiq | |
- js | |
- css | |
- ws | |
- anycable | |
volumes: | |
bundle_cache: | |
db_data: | |
redis: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment