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
This commit is contained in:
parent
3bb5dc5f3e
commit
fe6123e05f
@ -1,5 +1,3 @@
|
|||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
image: quay.io/redlib/redlib
|
image: quay.io/redlib/redlib
|
||||||
@ -13,12 +11,11 @@ services:
|
|||||||
read_only: true
|
read_only: true
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
|
- seccomp="seccomp-redlib.json"
|
||||||
cap_drop:
|
cap_drop:
|
||||||
- ALL
|
- ALL
|
||||||
networks:
|
networks:
|
||||||
- redlib
|
- redlib
|
||||||
security_opt:
|
|
||||||
- seccomp="seccomp-redlib.json"
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]
|
test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]
|
||||||
interval: 5m
|
interval: 5m
|
Loading…
Reference in New Issue
Block a user