From 5be4545a69d0d3af2e48204ae916e13bf64fe7f9 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 25 Dec 2023 00:09:00 +0530 Subject: [PATCH 1/2] added docker-compose.yaml and updated README.md --- README.md | 6 ++++++ docker-compose.yaml | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 docker-compose.yaml diff --git a/README.md b/README.md index cb317b2..e0194ba 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,12 @@ 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: + ```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"] From 1dde9edb14cba2ae143a4c200b40944f07c8f767 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 25 Dec 2023 14:38:15 +0530 Subject: [PATCH 2/2] update readme --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index e0194ba..4c0c58e 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,22 @@ pyenv install 3.11.3 - **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 ```