1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 02:38:07 +02:00
Commit graph

11 commits

Author SHA1 Message Date
Thoshinny B
c2071c0e14
Updated README.md at /react-express-mongodb /backend/
Enhanced Dockerfile snippet in README.md

The Dockerfile snippet in the README.md file required adjustments to align it more closely with the actual Dockerfiles in both the Backend and Frontend directories. I've made a few improvements to ensure clarity and accuracy.

Original Snippet in Repository:

FROM node:13.13.0-stretch-slim
# Argument passed from docker-compose.yaml file
ARG NODE_PORT
# Echo the argument to check if it's loaded correctly
RUN echo "Argument port is: $NODE_PORT"
# Create app directory
WORKDIR /usr/src/app
# Copy entire content
COPY . .
# Install app dependencies
RUN npm install
# My app binds to port NODE_PORT; use the EXPOSE instruction for Docker daemon mapping:
EXPOSE ${NODE_PORT}
CMD npm run dev

Modified Snippet:

FROM node:13.13.0-stretch-slim
# Argument passed from docker-compose.yaml file
ARG NODE_PORT
# Echo the argument to check if it's loaded correctly
RUN echo "Argument port is: $NODE_PORT"
# Create app directory
WORKDIR /usr/src/app
# Copy dependency definitions first for better Docker caching
COPY package.json /usr/src/app
# Install app dependencies
RUN npm install
# Copy the entire application code
COPY . /usr/src/app
# My app binds to port NODE_PORT; use the EXPOSE instruction for Docker daemon mapping:
EXPOSE ${NODE_PORT}
CMD npm run dev


These changes ensure consistency and readability.

Signed-off-by: Thoshinny B <69354714+Thoshinny-cyber@users.noreply.github.com>
2023-12-08 16:58:10 +05:30
Guillaume Lours
74317904bd
add configuration to use react-express-mongo sample with Docker Dev Environments feature (#271)
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2022-07-13 10:15:53 +02:00
Guillaume Lours
298ebd2b45
Fix security issues (#244)
* fix security issues in react-rust-postgres sample
* fix security issues in react-java-mysql sample
* fix security issues in react-express-mysql sample
* fix security issues in react-express-mongodb sample
* fix security issues in react-nginx sample
* fix security issues in angular sample
* fix security issues in django sample
* fix security issues in vuejs sample

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2022-05-16 21:20:20 +02:00
Guillaume Lours
4bba832f88
Arm64 and check Compose v2 support (#177)
add support of arm64 architecture for the following samples: 
* aspnet-mssql
* elasticsearch-logstash-kibana
* nginx-aspnet-mysql
* nginx-flask-mysql
* nginx-golang-mysql
* react-java-mysql
* sparkjava-mysql
* wordpress-mysql
* react-express-mysql
* react-express-mongodb

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2021-11-08 11:41:35 +01:00
Guillaume Lours
0a0a53b7c7
fix issue in validor dependency in the backend of react-express-mongodb sample (#175)
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2021-11-04 14:58:45 +01:00
Guillaume Lours
727084b6f6 fix security issues in the react-express-mongodb sample
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2021-10-08 12:20:53 +02:00
Max
6bec53c4c6
Fixed typo in message. (#132)
Signed-off-by: maxmarzolf <max@treesfromspace.com>
2021-05-21 17:44:22 +01:00
Anca Iordache
99e20f4867
Update dependencies for django and express samples (#128)
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
2021-04-13 14:29:52 +02:00
Jérémie Drouet
e5828ad1bf react-express-mongodb: clean frontend code
- apply prettier style on every js file
- remove mutation on immutable variables
- remove wrapper on top of axios
- fix form handling
- remove useless port definition in dockerfile

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-13 11:33:48 +02:00
Jérémie Drouet
be7f09b6ba react-express-mongodb: lint sources
to fix some syntax issues in the existing code, the commit
put in place prettier and format the code

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-13 11:33:48 +02:00
Jérémie Drouet
be8875c9b6 react-express-mongodb: rename server to backend
The goal here is to keep the same structure than the other examples.
Also, considering that it has a "frontend" folder, the equivalent for
the server should be "backend".

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-13 11:33:48 +02:00