This repository includes a Docker Compose configuration to streamline the deployment of services for your application. By using Docker Compose, you can set up and run the entire stack with just a few commands.
Before you proceed, ensure the following tools are installed in your system:
You can verify the installations by running:
docker --version
docker-compose --version
-
For Linux : An X server also installed (If not installed)
sudo apt install x
Allow X11 forwarding:
xhost +local:docker
-
For Windows: An X Server (e.g., VcXsrv or Xming)
-
Start an X Server:
- Launch VcXsrv or Xming.
- Configure it to allow connections from any host.
-
Find your host machine's IP address:
- Open Command Prompt and run
ipconfig
. - Look for the IPv4 Address under your active network adapter.
- Open Command Prompt and run
-
Run the container:
docker run -it -p 1420:1420 -e DISPLAY=<HOST_IP>:0.0 <image-name>
Replace
<HOST_IP>
with your actual IP address.
-
The Docker Compose file in this repository orchestrates the following services:
- Backend : The application backend service.
- Frontend : The application frontend service.
Clone the repository to your local system:
git clone [email protected]:AOSSIE-Org/PictoPy.git
cd PictoPy
cd backend
dos2unix run.sh
cd ..
Run the following command to build and start all services:
docker compose up --build
- Backend: Accessible at
http://localhost:8000
- Frontend: Accessible at
http://localhost:1420
To stop all running containers:
docker compose down
To stop services without removing the data:
docker compose stop
Since Docker containers are isolated from each other, we cannot directly access the folders of other containers. This is where the concept of volume mounting comes into play.where if you run your application via docker then for adding folders of your host machine
- Click the Path Other Locations
- Then click Computer
- After that click host
(Genrally in Linux , C and D Drive are located in mnt folder)
Now in this host location all of your host machine's files are available now you can add any folder from this path .
At all if you face any problem Click the Video Demo