From c7beb40af1bccfba8d59636a37beba97e449620f Mon Sep 17 00:00:00 2001 From: Camille Meulien Date: Mon, 8 Jan 2018 20:51:39 +0100 Subject: [PATCH] Creates config and database before running the rails application --- docker-compose.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 956fb5af..f043b8de 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,7 +5,6 @@ services: build: context: peatio dockerfile: Dockerfile - restart: always depends_on: - db - redis @@ -22,6 +21,14 @@ services: - RABBITMQ_HOST=rabbitmq volumes: - ./peatio:/home/app + entrypoint: + - /bin/sh + - -xc + command: + - | + ./bin/init_config + bundle exec rake db:create db:migrate db:seed + bundle exec puma --config config/puma.rb peatio_daemons: build: