Skip to content

Commit

Permalink
Added instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Oct 17, 2021
1 parent 87f819b commit cd56c34
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,22 @@ The `Dockerfile` here will allow you to containerize the proxy server for clean
1. Build the Docker Container

```bash
docker build -t pypowerwall:v1 .
docker build -t pypowerwall:latest .
```

2. Setup the Docker Container
2. Setup the Docker Container to listen on port 8675

```bash
docker run \
-d \
-p 8675:8675 \
--name pypowerwall \
--restart unless-stopped \
pypowerwall:v1
-v `pwd`:/app \
pypowerwall
```

3. Run the Docker Container

```bash
docker start pypowerwall
```

4. Test the Proxy
3. Test the Proxy

```bash
curl -i http://localhost:8675/soe
Expand All @@ -40,6 +35,19 @@ The `Dockerfile` here will allow you to containerize the proxy server for clean

## Troubleshooting Help

Check the logs:

```bash
# See the logs
docker logs pypowerwall
```

If you see python errors, make sure you entered your credentials correctly in the `server.py` file. If you didn't, edit that file and restart docker:
```bash
# Stop the server
docker stop pypowerwall
# Start the server
docker start pypowerwall
```

0 comments on commit cd56c34

Please sign in to comment.