docker-compose: do db:seed before server start

This is needed to create DanbooruBot and enable uploads, among other
things.
This commit is contained in:
nonamethanks
2022-03-07 03:10:51 +01:00
parent a160a3acce
commit a34f5f95be

View File

@@ -39,7 +39,7 @@ services:
- /tmp
depends_on:
- postgres
command: ["bash", "-c", "bin/rails db:prepare && bin/rails server -b 0.0.0.0"]
command: ["bash", "-c", "bin/rails db:prepare && bin/rails db:seed && bin/rails server -b 0.0.0.0"]
cron:
user: root