https://github.com/neutonfoo/docker-compose-simple-server
Fullstack server with React and Express with an nginx reverse proxy.
https://github.com/neutonfoo/docker-compose-simple-server
Last synced: 5 months ago
JSON representation
Fullstack server with React and Express with an nginx reverse proxy.
- Host: GitHub
- URL: https://github.com/neutonfoo/docker-compose-simple-server
- Owner: neutonfoo
- Created: 2020-07-28T12:44:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-28T13:05:08.000Z (almost 6 years ago)
- Last Synced: 2025-05-20T07:11:23.689Z (about 1 year ago)
- Language: HTML
- Size: 335 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Compose Server
- Fullstack server with React and Express with an nginx reverse proxy.
- Express running on port 5000
- Has 2 routes
- React running on port 3000
- React running in development mode, with nodemon and development server
- Class based `` that loads text from backend `componentDidMount` with Axios
- nginx
- Routes all `/api/*` routes to Express
- Rewrites and removes `/api/`
- Routes other urls to React
# Startup
`docker-compose up --build`
http://localhost:8080
# Remove
`docker-compose down`