Skip to content

Commit 058ebb8

Browse files
committed
feat: split microservice deployment
1 parent 33c5fdc commit 058ebb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ This is a demo of integration with a third party image search provider Pexels
5050
```
5151
git clone git@github.com:danilaplee/next-nest.git
5252
cd next-next
53-
PEXELS_API_KEY='paste-your-apikey' REDIS_VOLUME_PATH='/var/opt/redis' REDIS_PASSWORD='yourpassword123' docker compose up
53+
PEXELS_API_KEY='paste-your-apikey' REDIS_VOLUME_PATH='/var/opt/redis PUBLIC_API_URL='http://localhost:5256/' REDIS_PASSWORD='yourpassword123' docker compose up
5454
open http://localhost:5257
5555
```
5656

compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ services:
5151
image: 'fiendofsound/pexels-ui:main'
5252
environment:
5353
- SSR_API_URL=http://pexels-api:5256/
54-
- PUBLIC_API_URL=http://localhost:5256/
54+
- PUBLIC_API_URL=${PUBLIC_API_URL}
5555
- PORT=5257
5656
ports:
5757
- "5257:5257"

0 commit comments

Comments
 (0)