From 1fa226e3386da7a721a03923e88b3d35ffcdb384 Mon Sep 17 00:00:00 2001 From: Emanuel Bennici Date: Mon, 27 Apr 2020 12:01:32 +0200 Subject: [PATCH] Add missing volume declaration in docker-compose Resolve the error when executing `docker-compose up -d`: `ERROR: Named volume "statping_data:/app:rw" is used in service "statping" but no declaration was found in the volumes section.` This adds the missing `volume` declaration to the `docker-compose.yaml` file. --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 434a59a8..7f49c6fa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,6 @@ version: '2.3' services: - statping: container_name: statping image: statping/statping:latest @@ -12,3 +11,6 @@ services: DB_CONN: sqlite ports: - 8080:8080 + +volumes: + statping_data: