From fe6123e05fa641dd021f12f40e6991f8e83f9120 Mon Sep 17 00:00:00 2001 From: Kirk1984 Date: Tue, 6 Feb 2024 18:14:37 +0100 Subject: [PATCH] Update docker-compose.yml to remove duplicate 'security_opt' (#45) * Update docker-compose.yml to remove duplicate 'security_opt' Docker compose complains with "mapping key "security_opt" already defined" * Update and rename docker-compose.yml to compose.yaml `version:` is deprecated: https://docs.docker.com/compose/compose-file/04-version-and-name/ compose.yaml is the current standard: https://docs.docker.com/contribute/style/terminology/#composeyaml --- docker-compose.yml => compose.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) rename docker-compose.yml => compose.yaml (94%) diff --git a/docker-compose.yml b/compose.yaml similarity index 94% rename from docker-compose.yml rename to compose.yaml index f516409..573f222 100644 --- a/docker-compose.yml +++ b/compose.yaml @@ -1,5 +1,3 @@ -version: "3.8" - services: web: image: quay.io/redlib/redlib @@ -13,12 +11,11 @@ services: read_only: true security_opt: - no-new-privileges:true + - seccomp="seccomp-redlib.json" cap_drop: - ALL networks: - redlib - security_opt: - - seccomp="seccomp-redlib.json" healthcheck: test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"] interval: 5m