Fix demo docker services startup order

This commit is contained in:
Vikram Rangnekar 2019-08-04 02:23:23 -04:00
parent 716a6ba74b
commit aa9a4e3dc4
2 changed files with 23 additions and 23 deletions

View File

@ -9,6 +9,17 @@ services:
# ports:
# - "6379:6379"
rails_app:
build: rails-app/.
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- ./rails-app:/app
- /app/tmp
ports:
- "3000:3000"
depends_on:
- db
super_graph:
build:
context: .
@ -24,17 +35,6 @@ services:
command: fresh -c fresh.conf
depends_on:
- db
rails_app:
build: rails-app/.
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- ./rails-app:/app
- /app/tmp
ports:
- "3000:3000"
depends_on:
- db
- super_graph
- rails_app
# - redis

View File

@ -4,15 +4,6 @@ services:
image: postgres
tmpfs: /var/lib/postgresql/data
super_graph:
image: dosco/super-graph:latest
environment:
GO_ENV: "development"
depends_on:
- db
ports:
- "8080:8080"
rails_app:
image: dosco/super-graph-demo:latest
environment:
@ -22,4 +13,13 @@ services:
- "3000:3000"
depends_on:
- db
- super_graph
super_graph:
image: dosco/super-graph:latest
environment:
GO_ENV: "development"
ports:
- "8080:8080"
depends_on:
- db
- rails_app