edit docker

This commit is contained in:
sam 2022-05-14 19:19:46 +04:30
parent c1305cbb0c
commit 53127dfd44

View File

@ -16,7 +16,7 @@ services:
build:
context: .
dockerfile: Dockerfile
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rake db:create db:migrate db:seed && bundle exec rails s -b '0.0.0.0'"
command: bash -c "rm -f tmp/pids/server.pid && EDITOR='mate --wait' bundle exec rails credentials:edit && bundle exec rake db:create db:migrate db:seed && bundle exec rails s -b '0.0.0.0'"
volumes:
- .:/app
- bundle:/usr/local/bundle