Update docker-compose.yml
This commit is contained in:
@@ -2,10 +2,9 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
nextjs-app:
|
nextjs-app:
|
||||||
# Build the image from the Dockerfile
|
|
||||||
build:
|
build:
|
||||||
context: .
|
context: . # Ensure the build context is set to the project root directory
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile # Make sure it's pointing to the correct Dockerfile location
|
||||||
container_name: nextjs-app-container
|
container_name: nextjs-app-container
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000" # Map container port 3000 to host port 3000
|
- "3000:3000" # Map container port 3000 to host port 3000
|
||||||
@@ -13,5 +12,5 @@ services:
|
|||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- NEXT_PUBLIC_API_URL=https://internal-api.inboxi.ng/api
|
- NEXT_PUBLIC_API_URL=https://internal-api.inboxi.ng/api
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app # Mount the current directory to /app in the container
|
- .:/app # Mount the entire project directory to /app inside the container
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user