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 Support for Docker Compose. #985

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 @@ -128,6 +128,28 @@ $ zphisher

##

### Run using Docker Compose

- Clone the Project
- Start the Container
```
docker compose up -d
```
- The -d flag runs the container in detached mode (in the background).
- Attach to the Zphisher Container
- To interact with the Zphisher container:
```
docker attach zphisher
```
- Don't Press Ctrl + C to stop as it will stop the application. (You can close the terminal)
- Stop the Container
- If you want to stop the container:
```
docker-compose down
```

##

<details>
<summary><h3>Dependencies</h3></summary>

Expand Down
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3.9'

services:
zphisher:
image: htrtech/zphisher:latest
container_name: zphisher
network_mode: host
stdin_open: true
tty: true
volumes:
- ./auth:/zphisher/auth
restart: unless-stopped