add env file for next js service
This commit is contained in:
@@ -48,7 +48,7 @@ services:
|
||||
build:
|
||||
context: ${LARAVEL_PROJECT_PATH}
|
||||
dockerfile: Dockerfile
|
||||
container_name: ${PROJECT_NAME}
|
||||
container_name: laravel
|
||||
tty: true
|
||||
ports:
|
||||
- "9000:9000"
|
||||
@@ -98,16 +98,12 @@ services:
|
||||
context: ${NEXT_JS_PATH}
|
||||
dockerfile: Dockerfile
|
||||
container_name: nextjs
|
||||
environment:
|
||||
- NEXT_PUBLIC_VERSION=${NEXT_PUBLIC_VERSION}
|
||||
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
|
||||
- NEXT_PUBLIC_SERVER_SOCKET_URL=${NEXT_PUBLIC_SERVER_SOCKET_URL}
|
||||
env_file:
|
||||
- ${NEXT_JS_PATH}/.env.local
|
||||
volumes:
|
||||
- ${NEXT_JS_PATH}:/var/www/nextjs
|
||||
ports:
|
||||
- "3000:3000"
|
||||
env_file:
|
||||
- .env.local
|
||||
- "3106:3000"
|
||||
restart: unless-stopped
|
||||
profiles:
|
||||
- server
|
||||
|
||||
Reference in New Issue
Block a user