Create docker-compose.yml
This commit is contained in:
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
nextjs-app:
|
||||
# Build the image from the Dockerfile
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: nextjs-app-container
|
||||
ports:
|
||||
- "3000:3000" # Map container port 3000 to host port 3000
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- NEXT_PUBLIC_API_URL=https://internal-api.inboxi.ng/api
|
||||
volumes:
|
||||
- .:/app # Mount the current directory to /app in the container
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user