Fix demo docker services startup order
This commit is contained in:
parent
716a6ba74b
commit
aa9a4e3dc4
|
@ -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
|
||||
|
|
|
@ -3,16 +3,7 @@ services:
|
|||
db:
|
||||
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
|
Loading…
Reference in New Issue