CMSであるSHIRASAGIのDocker環境テンプレート
docker-compose build
docker-compose up
docker-compose exec mongodb bash
rake db:drop
rake db:create_indexes
rake ss:create_site data='{ name: "デモ", host: "demo", domains: "localhost:3000" }'
rake db:seed site=demo name=demo
rake ss:create_user data='{ name: "システム管理者", email: "sys@example.jp", password: "pass" }'
development:
clients:
default:
database: ss
hosts:
- mongodb:27017