compose-cli
compose-cli copied to clipboard
can't able to connect / communicate with folders in another container ?
I can't able to read the template folder from frontend container.
Here is my file structure.

Here is my docker-compose.yml
version: '3.2'
services:
frontend:
build: ./frontend
volumes:
- ./home/doc-tryy-2/frontend:/var/lib/docker/volumes/doc-tryy-2_asset-volume1/_data
backend:
build: ./backend
depends_on:
- "frontend"
ports:
- "8080:8080"
volumes:
- ./home/doc-tryy-2/frontend:/var/lib/docker/volumes/doc-tryy-2_asset-volume1/_data
volumes:
asset-volume1:
Here is my frontend/Dockerfile
FROM python:3.7-slim
WORKDIR /common_dir
ADD . /common_dir
COPY . ./
RUN pip3 install -r requirements.txt --user
Here is my backend/Dockerfile
FROM python:3.7-slim
WORKDIR /common_dir
ADD . /common_dir
RUN pip3 install -r requirements.txt --user
EXPOSE 8080
CMD ["python3", "app.py"]
Here is my backend/app.py
from flask import Flask, render_template, flash, redirect, url_for, session, logging, request
app = Flask(__name__)
app.secret_key = 'hello'
@app.route("/", methods=["GET", "POST"])
def login():
if request.method == "POST":
uname = request.form["uname"]
return render_template("loginpage.html", uname=uname)
else:
return render_template("loginpage.html")
if __name__ == "__main__":
app.run(debug=True,port=8080,host='0.0.0.0')
here is my Error message i am getting

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it had not recent activity during the stale period.