Skip to content

Instantly share code, notes, and snippets.

@hirokihello
Created April 22, 2019 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hirokihello/490e8a7cfa639e4e498cf0451039057f to your computer and use it in GitHub Desktop.
Save hirokihello/490e8a7cfa639e4e498cf0451039057f to your computer and use it in GitHub Desktop.
version: '3'
services:
web:
build:
context: .
dockerfile: docker/web/Dockerfile
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/uuum-id
- bundle:/usr/local/bundle
ports:
- "12301:3000"
depends_on:
- worker
tty: true
stdin_open: true
networks:
uuum-fans:
aliases:
- uuum-fans
worker:
build:
context: .
dockerfile: docker/web/Dockerfile
command: bundle exec sidekiq --config config/sidekiq.yml
volumes:
- .:/uuum-id
- bundle:/usr/local/bundle
- ./node_modules:/uuum-id/node_modules:delegated
tty: true
stdin_open: true
networks:
uuum-fans:
aliases:
- uuum-fans
volumes:
bundle:
networks:
uuum-fans:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment