diff --git a/README.md b/README.md index cb317b2..4c0c58e 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,28 @@ pyenv install 3.11.3 docker run -d -p 8080:8080 --name pastepyprod mrsunglasses/pastepy ``` +- **Using docker-compose**: + You can also use docker-compose to run the project locally by running the following command: +
+ - **Clone the repository**: + Get the project source code from GitHub: + + ```bash + git clone https://github.com/FOSS-Community/paste.py.git + ``` + + - **Navigate to the Project Directory**: + + ```bash + cd paste.py + ``` + + - **Run the project using docker-compose**: + + ```bash + docker-compose up -d + ``` + ## Local setup 🛠️ without Docker 🐳 ### Setting Up the Project with PDM diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..afc3fdf --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,10 @@ +version: '3.8' + +services: + myapp: + build: + context: . + target: builder + ports: + - "8080:8080" + command: ["pdm", "run", "start"]