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

26 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
Stefan Scherer
6f15838d24
react-express-mongodb: remove container_name to allow multiple apps in parallel (#310)
Remove `container_name` to allow multiple apps without conflict.

Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
2022-12-08 16:21:16 -05:00
Nick Sieger
c2f8036fd3
Add "Open in Docker Dev Environments" links (#280)
* readme: add devenvs links in READMEs

Signed-off-by: Nick Sieger <nick@nicksieger.com>
2022-09-01 11:39:33 -05:00
Guillaume Lours
e45810975f
add configuration to use react-express-mysql sample with Docker Dev Environments feature (#270)
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2022-07-13 10:35:12 +02:00
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
Nicolas De loof
667bd9facb
Adopt Compose v2 (#240)
* Adopt Compose v2

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2022-05-10 11:59:25 +02:00
Guillaume Lours
56c23d9f89 fix security issues on react-express-mongodb sample
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2022-03-12 18:56:34 +01:00
ti777777
1ffb3f1c9b
fix a typo (#191)
Signed-off-by: ti777777 <ti12272198686@yahoo.com.tw>
2021-12-09 16:15:57 +01:00
Guillaume Lours
93f8f18f64
Fix security issues (#179)
* fix security issues in react-java-mysql sample
* fix security issues in react-express-mysql sample
* fix security issues in react-express-mongol sample

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2021-11-22 09:51:11 +01: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
2056ab2f01
Remove version from compose files to conform to the specification (#167)
https://github.com/compose-spec/compose-spec/blob/master/spec.md#version-top-level-element

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2021-11-04 15:51:58 +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
08edf6afc0
fix issue in validor dependency of react-express-mongodb sample (#174)
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2021-11-04 14:50:47 +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
Jeffrey Swan
0ae9d4cea7
fix(docs): corrects typo in project documentation. (#137)
* fix(docs): corrects typo in project documentation.

Signed-off-by: Jeffrey Swan <jeffrey.swan.it@gmail.com>
2021-05-31 09:08:29 +01:00
Daniel
5da10ec827
update reference to port 5000 (now 3000) (#138)
Signed-off-by: Daniel Santos <iam@w-b.dev>
2021-05-21 17:53:00 +01:00
Max
6bec53c4c6
Fixed typo in message. (#132)
Signed-off-by: maxmarzolf <max@treesfromspace.com>
2021-05-21 17:44:22 +01:00
Javier López Barba
744ed86c55
Add missing expose field to docker compose files (#124)
Signed-off-by: javi <javier@okteto.com>
2021-04-30 22:29:16 +02: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
Guillaume Lours
16854a92ef
Fix security issues (#102)
* upgrade dependencies of vuejs sample to fix security issues

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>

* upgrade dependencies of react-express-mongodb sample to fix security issues

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>

* upgrade dependencies of react-express-mysql sample to fix security issues

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2021-03-19 10:26:43 +01: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
Guillaume Lours
e29f0d1c54
[react-express-mongdb] use compose network to communicate between services (#62)
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
2020-05-12 11:18:38 +02:00
Syed Afzal
2f750eb4f7
Sample React-Express-MongoDB (#59)
Signed-off-by: Afzal <sah.afzal@gmail.com>
2020-05-11 21:40:39 +02:00