Skip to content

Commit

Permalink
Update docker-compose.yml to remove duplicate 'security_opt' (#45)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Kirk1984 authored Feb 6, 2024
1 parent 3bb5dc5 commit fe6123e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docker-compose.yml → compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

services:
web:
image: quay.io/redlib/redlib
Expand All @@ -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
Expand Down

0 comments on commit fe6123e

Please sign in to comment.