1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

eccube4がdocker-composeで立ち上がらない【services.ec-cube.depends_on contains an invalid type, it should be an array】とか出る

Posted at

リポジトリからcloneしてきてそのままdocker-composeしても立ち上がらない

https://doc4.ec-cube.net/quickstart/docker_compose_install
公式より、そのまま実行。しかし

ERROR: The Compose file './docker-compose.pgsql.yml' is invalid because:
services.ec-cube.depends_on contains an invalid type, it should be an array

と出て立ち上がらない。

調べた

https://stackoverflow.com/questions/71060072/docker-compose-depends-on-with-condition-invalid-type-should-be-an-array
どうやらこういうことらしい。
バージョンによって微妙に文法変更。つらい。

@@ -7,8 +7,7 @@ volumes:
 services:
   ec-cube:
     depends_on:
-      postgres:
-        condition: service_healthy
+      - postgres
     environment:
       DATABASE_URL: "postgres://dbuser:secret@postgres/eccubedb"
       DATABASE_SERVER_VERSION: 14

このような感じに変更、これで動く。ただ、上記URLにもある通り3.9以上だとまた使えるみたい。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?