Fix demo docker services startup order
This commit is contained in:
parent
716a6ba74b
commit
aa9a4e3dc4
|
@ -9,6 +9,17 @@ services:
|
||||||
# ports:
|
# ports:
|
||||||
# - "6379:6379"
|
# - "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:
|
super_graph:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
|
@ -24,17 +35,6 @@ services:
|
||||||
command: fresh -c fresh.conf
|
command: fresh -c fresh.conf
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
- rails_app
|
||||||
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
|
|
||||||
|
|
||||||
# - redis
|
# - redis
|
||||||
|
|
|
@ -3,16 +3,7 @@ services:
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres
|
||||||
tmpfs: /var/lib/postgresql/data
|
tmpfs: /var/lib/postgresql/data
|
||||||
|
|
||||||
super_graph:
|
|
||||||
image: dosco/super-graph:latest
|
|
||||||
environment:
|
|
||||||
GO_ENV: "development"
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
||||||
|
|
||||||
rails_app:
|
rails_app:
|
||||||
image: dosco/super-graph-demo:latest
|
image: dosco/super-graph-demo:latest
|
||||||
environment:
|
environment:
|
||||||
|
@ -22,4 +13,13 @@ services:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- 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