mosesreigns / build-and-dockerize-a-full-stack-react-app-with-node.js-mysql-and-nginx-for-reverse-proxy Goto Github PK
View Code? Open in Web Editor NEWCheck out the step by step explained guide here
Check out the step by step explained guide here
Nice Work! But, if I run the proyect "out-of-the-box" (following the README's instructions) I get a "502 Bad Gateway" server error.
The docker log shows this message about the ngix
service: [error] 32#32: *1 connect() failed (113: No route to host) while connecting to upstream, client: 172.23.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://172.23.0.2:3000/", host: "localhost:3050"
. Some research leads me to an error about write permissiones over the /app/node_modules/.cache
directory.
This can be fixed updating the client/Dockerfile
, changing the line from WORKDIR /app
to WORKDIR /usr/src/app
.
After that I rebuild and run the image. Now the client
service throws an error :0308010C:digital envelope routines::unsupported ...
. This can be fixed in the client/Dockerfile
again, changing the node base image version from node:alpine
to node:16
.
Now, the project run nicely. Greetings!
Hello, after I successful fixxed by following your solution of this issue #1 (comment).
And nowI have a problem about the adding new value to database, I attached the video below. How can I fix this?
Thank you so much.
Does not work with current version of alpine. Found that it will compile with FROM node:16.3.0-alpine
Hello I followed the tutorial at https://www.section.io/engineering-education/build-and-dockerize-a-full-stack-react-app-with-nodejs-and-nginx/ and firstly, THANK YOU for taking the time to write that and set it up.
I have one small problem though. When following the original steps, the docker-compose.yml
file being executed simply created a directory of setup.sql
, but did not add the "script" that creates your table. I tried to change this directory to a file, (called setup.sql
at the project root) but then it simply errored out as I executed the script to run the docker-compose.yml
file.
I have tried to make a directory called setup.sql
with a file within that called setup.sql
, which contains the script, but although there is no error, the adminer seems to indicated this script was not executed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.