-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
RyosukeDTomita
committed
Dec 27, 2023
1 parent
6aa3279
commit 850782f
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: '3' | ||
|
||
services: | ||
react-app: | ||
Check warning Code scanning / Semgrep Semgrep Finding: yaml.docker-compose.security.no-new-privileges.no-new-privileges Warning
Service 'react-app' allows for privilege escalation via setuid or setgid binaries. Add 'no-new-privileges:true' in 'security_opt' to prevent this.
Check warning Code scanning / Semgrep Semgrep Finding: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service Warning
Service 'react-app' is running with a writable root filesystem. This may allow malicious applications to download and run additional payloads, or modify container files. If an application inside a container has to save something temporarily consider using a tmpfs. Add 'read_only: true' to this service to prevent this.
|
||
build: | ||
context: ./ | ||
dockerfile: Dockerfile | ||
image: react-app:latest | ||
ports: | ||
- 80:8080 # localport:dockerport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters