From 219259412cf33dc83488391abfcc85024b69cac6 Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Thu, 2 Nov 2023 08:48:46 +0000 Subject: [PATCH] Enhancement (development): Add `depends_on: db` to `daemon` to make it stop before `db` This ensures the daemon cleanly flushes to DB before the DB is shut down. --- docker-compose.example.yml | 2 ++ docker-compose.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docker-compose.example.yml b/docker-compose.example.yml index c3c6c346..52d14315 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -61,6 +61,8 @@ services: - 27500:27500/udp # For external servers to send logs to the daemon networks: - default + depends_on: + - db command: - --ip=0.0.0.0 - --port=27500 diff --git a/docker-compose.yml b/docker-compose.yml index b878a7cc..96f00c70 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -64,6 +64,8 @@ services: - 27500:27500/udp # For external servers to send logs to the daemon networks: - default + depends_on: + - db command: - --ip=0.0.0.0 - --port=27500