Skip to content

Commit

Permalink
use instead docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeDTomita committed Dec 27, 2023
1 parent 6aa3279 commit 850782f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions docker-compose.yml
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
7 changes: 4 additions & 3 deletions docker_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
# Date: 2023/12/06
##########################################################################
docker rmi react-app:latest -f
docker build -t react-app:latest . --no-cache
docker run -p 80:8080 react-app:latest # -p localport:containerport
#docker build -t react-app:latest . --no-cache
#docker run -p 80:8080 react-app:latest # -p localport:containerport
docker compose up

# open your browser and go to `localhost:8080`.
# open your browser and go to `localhost:80`.

0 comments on commit 850782f

Please sign in to comment.