Created
August 1, 2018 12:48
-
-
Save yannski/6361681a720597de956e35705031239f 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: '2' | |
services: | |
web: | |
build: . | |
links: | |
- redis | |
- webpack | |
ports: | |
- 2400:2400 | |
volumes: | |
- ./:/usr/src/app | |
environment: | |
AUTH_API_BASE_URI: "http://172.17.0.1:1234" | |
API_BASE_URI: "http://172.17.0.1:3001" | |
GITHUB_SCOPE: 'repo,user:email' | |
REDIS_URL: "redis://:pipo@redis:6379" | |
BUNDLE_BIN: "/usr/src/app/vendor/.bundle/ruby/2.5.0/bin" | |
BUNDLE_PATH: "/usr/src/app/vendor/.bundle/ruby/2.5.0" | |
WEBPACKER_DEV_SERVER_HOST: 172.17.0.1 | |
DISABLE_TRACKERS: "true" | |
command: bundle exec rails server -b 0.0.0.0 -p 2400 -e development | |
webpack: | |
build: . | |
ports: | |
- 3036:3036 | |
volumes: | |
- ./:/usr/src/app | |
command: bundle exec ./bin/webpack-dev-server | |
environment: | |
BUNDLE_BIN: "/usr/src/app/vendor/.bundle/ruby/2.5.0/bin" | |
BUNDLE_PATH: "/usr/src/app/vendor/.bundle/ruby/2.5.0" | |
redis: | |
image: scalingo/redis:4.0.1-1 | |
volumes: | |
- ./docker/redis-data:/var/lib/redis:rw | |
command: /redis | |
environment: | |
DB_PASSWORD: "pipo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment