Skip to content

Commit db7d327

Browse files
Merge pull request #25 from SAMAD101/issue24
Added docker-compose.yaml and updated README.md
2 parents 1634d78 + 1dde9ed commit db7d327

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,28 @@ pyenv install 3.11.3
5252
docker run -d -p 8080:8080 --name pastepyprod mrsunglasses/pastepy
5353
```
5454

55+
- **Using docker-compose**:
56+
You can also use docker-compose to run the project locally by running the following command:
57+
<br>
58+
- **Clone the repository**:
59+
Get the project source code from GitHub:
60+
61+
```bash
62+
git clone https://github.com/FOSS-Community/paste.py.git
63+
```
64+
65+
- **Navigate to the Project Directory**:
66+
67+
```bash
68+
cd paste.py
69+
```
70+
71+
- **Run the project using docker-compose**:
72+
73+
```bash
74+
docker-compose up -d
75+
```
76+
5577
## Local setup 🛠️ without Docker 🐳
5678

5779
### Setting Up the Project with PDM

docker-compose.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: '3.8'
2+
3+
services:
4+
myapp:
5+
build:
6+
context: .
7+
target: builder
8+
ports:
9+
- "8080:8080"
10+
command: ["pdm", "run", "start"]

0 commit comments

Comments
 (0)