← Back to post

Edit history

Most recent

@redume I have one service dependant on the other two.

One has to quit before launching said service, the other should start before launching the service (which is the default behaviour).

So, I can't just put a colon on one of them and have it have a "service_completed_successfully" condition. So this:

```
depends_on:
backendb
launcher:
condition: service_completed_successfully
```

doesn't work. It reports a YAML error without much of a further explanation. Turns out (after googling and a cheeky little ChatGPT query), that I _have_ to have a condition on both of them, or neither:

```
depends_on:
backendb:
condition: service_started
launcher:
condition: service_completed_successfully
```

Edited

@redume I have one service dependant on the other two.

One has to quit before launching said service, the other should start before launching the service (which is the default behaviour).

So, I can't just put a colon on one of them and have it have a "service_completed_successfully" condition. So this:

```
depends_on:
backendb
launcher:
condition: service_completed_successfully
```

doesn't work. It reports a YAML error without much of a further explanation. Turns out, I _have_ to have a condition on both of them, or neither:

```
depends_on:
backendb:
condition: service_started
launcher:
condition: service_completed_successfully
```

Edited

@redume I have one service dependant on the other two.

One has to quit before launching said service, the other should start before launching the service (which is the default behaviour).

So, I can't just put a colon on one of them and have it have a "service_completed_successfully" condition. So this:

```
depends_on:
backendb
launcher:
condition: service_completed_successfully
```

doesn't work. It reports a YAML error without much of a further explanation. I _have_ to have a condition on both of them, or neither:

```
depends_on:
backendb:
condition: service_started
launcher:
condition: service_completed_successfully
```

Original

@redume I have one service dependant on the other two.

One has to quit before launching said service, the other should start before launching the service (which is the default behaviour).

So, I can't just put a colon on one of them and have it have a "service_completed_successfully" condition. So this:

```
depends_on:
backendb
launcher:
condition: service_completed_successfully
```

doesn't work. It reports a YAML error. I _have_ to have a condition on both of them, or neither:

```
depends_on:
backendb:
condition: service_started
launcher:
condition: service_completed_successfully
```