You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,29 @@ A simple HTTP server that can be used to mock HTTP responses for testing purpose
24
24
docker run -d -p 3000:3000 jaredwray/mockhttp
25
25
```
26
26
27
+
# Deploy via Docker Compose
28
+
```yaml
29
+
services:
30
+
mockhttp:
31
+
image: jaredwray/mockhttp:latest
32
+
ports:
33
+
- "3000:3000"
34
+
```
35
+
36
+
If you want to run it on a different port, just change the `3000` to whatever port you want and add in the environment variable `PORT` to the environment.
37
+
38
+
```yaml
39
+
services:
40
+
mockhttp:
41
+
image: jaredwray/mockhttp:latest
42
+
ports:
43
+
- "3001:3001"
44
+
environment:
45
+
- PORT=3001
46
+
```
47
+
48
+
You can see an example of this in the [docker-compose.yaml](docker-compose.yaml) file.
0 commit comments