A multi-service application using Docker Compose, featuring a Python API and a Node.js web frontend.
multi-docker-app/
docker-compose.yml
api/
app.py
Dockerfile
requirements.txt
web/
Dockerfile
package.json
src/
index.js
secrets/
db_password.txt
- Docker & Docker Compose installed
- Git
-
Clone the repository:
git clone https://github.com/shivansh-gohem/multi-service-docke--app.git cd multi-docker-app -
Build and start all services:
docker-compose up --build
-
Access the services:
- API: http://localhost:5000
- Web: http://localhost:3000
- Python Flask app (
api/app.py) - Dockerfile for containerization
- Dependencies in
requirements.txt
- Node.js frontend (
web/src/index.js) - Dockerfile for containerization
- Dependencies in
package.json
- Store sensitive data (e.g., database passwords) in the
secrets/directory.
docker-compose downMIT