/api added with docker
This commit is contained in:
@@ -3,6 +3,12 @@ services:
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:80" # Map port 8000 on the host to port 80 in the container
|
||||
- "8000:80"
|
||||
volumes:
|
||||
- .:/usr/share/nginx/html # Mount the current directory to Nginx's serving directory in the container
|
||||
- .:/usr/share/nginx/html
|
||||
api:
|
||||
build: ./api
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- ./api:/usr/src/app # Mount the local ./api directory to /usr/src/app in the container
|
||||
|
||||
Reference in New Issue
Block a user