diff --git a/compose/app.yml b/compose/app.yml index 8545da85..8ac23a6d 100644 --- a/compose/app.yml +++ b/compose/app.yml @@ -1,5 +1,5 @@ services: - app: + app: &app build: context: ../. # Skip installing development & test gems in production, saves 20s build time. @@ -18,6 +18,7 @@ services: - mqtt-task - telnet-task - push + - app-migrations #- mqtt restart: always deploy: @@ -34,4 +35,11 @@ services: logging: driver: "json-file" options: - max-size: "100m" \ No newline at end of file + max-size: "100m" + app-migrations: + <<: *app + depends_on: + - db + ports: [] + entrypoint: ["bash", "-c", "rake db:migrate"] + restart: no