Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added docker-compose.yaml and updated README.md #25

Merged
merged 2 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
<br>
- **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
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3.8'

services:
myapp:
build:
context: .
target: builder
ports:
- "8080:8080"
command: ["pdm", "run", "start"]