first commit
This commit is contained in:
19
docker-compose.yml
Normal file
19
docker-compose.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
nextjs:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
- jsonserver
|
||||
environment:
|
||||
NEXT_PUBLIC_API_URL: "http://jsonserver:4000"
|
||||
|
||||
jsonserver:
|
||||
image: clue/json-server
|
||||
ports:
|
||||
- "4000:4000"
|
||||
volumes:
|
||||
- ./db.json:/data/db.json
|
||||
command: json-server --watch /db.json --port 4000
|
||||
Reference in New Issue
Block a user