Created
June 28, 2019 20:07
-
-
Save jmdfm/71a72a5f6db01e74408de3fc870226fc 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.4' | |
services: | |
db: | |
image: postgres:alpine | |
environment: | |
- POSTGRES_PASSWORD | |
volumes: | |
- db-data:/var/lib/postgresql/data | |
redis: | |
image: redis:4.0-alpine | |
app: &app_base | |
tty: true | |
stdin_open: true | |
build: | |
context: . | |
args: | |
- ADDITIONAL_PACKAGES=nodejs-current yarn | |
- EXECJS_RUNTIME=Node | |
- RAILS_ENV=development | |
- NODE_ENV=development | |
environment: | |
<snip> | |
ports: | |
- '3000:3000' | |
- '9394:9394' | |
links: | |
- db | |
- redis | |
volumes: | |
- .:/app:cached | |
- /app/tmp | |
worker: | |
<<: *app_base | |
command: bundle exec sidekiq | |
ports: [] | |
volumes: | |
- .:/app:cached | |
- /app/tmp | |
depends_on: | |
- app | |
hypernova: | |
build: | |
context: ../kiso-nova | |
dockerfile: Dockerfile | |
ports: | |
- '9090' | |
links: | |
- app | |
volumes: | |
<snip> | |
depends_on: | |
- app | |
webpack: | |
build: | |
context: . | |
dockerfile: Dockerfile.webpack | |
environment: | |
- REACT_APP_HMR_HOSTNAME=0.0.0.0 | |
- REACT_APP_HMR_PORT=9000 | |
- PORT=9000 | |
- NODE_ENV=development | |
ports: | |
- '9000:9000' | |
volumes: | |
- .:/app | |
depends_on: | |
- app | |
volumes: | |
db-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment