Created
April 22, 2019 11:59
-
-
Save hirokihello/490e8a7cfa639e4e498cf0451039057f to your computer and use it in GitHub Desktop.
This file contains 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' | |
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