Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- vf_en:
- container_name: vf_en
- ports:
- - "80:80"
- - "441:443"
- build: ./value_focus_enterprise
- environment:
- - MCKINSEY_PROXY_SERVICE_HOST=bravos
- - MCKINSEY_PROXY_SERVICE_PORT=8000
- vf_ma:
- container_name: vf_ma
- ports:
- - "82:80"
- - "442:443"
- build: ./value_focus_corporate
- environment:
- - MCKINSEY_PROXY_SERVICE_HOST=bravos
- - MCKINSEY_PROXY_SERVICE_PORT=8000
- mulch-api:
- build: ./mulch_enterprise
- container_name: mulch-api
- depends_on:
- - mulch-db
- - restore-db
- volumes:
- - ./mulch_enterprise/app/:/mulch_enterprise/app
- ports:
- - "3051:3051" # we don't nee this
- # Run the restore-db service to restore a backup of mongodb's contents from db/backup.
- # It will overwrite the data inside of mongodb
- #
- # Steps:
- # 1. Run: `$ docker-compose run --rm restore-db`
- restore-db:
- build: ./mulch_enterprise/app/db #remove later to higher lever
- command: /my_db/restore.sh
- container_name: restore-db
- depends_on:
- - mulch-db
- volumes:
- - ./mulch_enterprise/app/db/:/my_db/
- mulch-db:
- container_name: mulch-db
- image: mongo:3.0
- command: mongod --smallfiles
- ports:
- - 27017:27017
- bravos-ui:
- image: docker.mdl.cloud/canvas_applications/bravos-ui:latest
- container_name: bravos-ui
- env_file: .env
- environment:
- - AUTH0_DEV_MODE=false
- - API_PORT=8000
- - API_HOST=bravos
- ports:
- - 3000:80
- links:
- - bravos
- bravos-api:
- image: docker.mdl.cloud/canvas/bravos-api:latest
- container_name: bravos-api
- volumes:
- - './bravos_api_seeds/seeds.rb:/app/db/seeds.rb'
- command: bundle exec "rake db:create db:migrate db:seed && rails s -p 8080"
- env_file: .env
- environment:
- - DISABLE_AUTH0=true
- restart: on-failure
- links:
- - postgres
- bravos:
- image: docker.mdl.cloud/canvas/bravos:latest
- container_name: bravos
- env_file: .env
- environment:
- - BRAVOS_API_PORT=8080
- - BRAVOS_PORT=8000
- - BRAVOS_DEFAULT_USER=superuser
- - BRAVOS_FORWARD_PORT=0 #use the port valuse from PSQL
- restart: on-failure
- ports:
- - 8000:8000
- links:
- - postgres
- - bravos-api
- postgres:
- image: postgres
- container_name: postgres
- environment:
- - POSTGRES_DB=bravos
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=postgres
- ports:
- - 5432:5432
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement