Please check the official nuxt installation guide. Official Documentation
Check and make sure you copied the .env.example
to .env
or it is already exists.
Change directory to the docker folder:
cd docker
Check if it has .env
environment variables file already in place otherwise copy .env.example
to create one .env
cp .env.example .env
Whatever is the Nuxt port you used needs to be used on application directory /.env
file accordingly.
If it is first time building docker container, run below command to Build images before starting containers.
docker-compose up --build
Access the container shell to execute commands by running the following command:
docker exec -it laranuxt_nuxt_frontend /bin/sh
docker ps
- List all running containers.docker ps --filter "name=laranuxt"
- List running containers filtered by name.docker stop container-name
- Stop a running container gracefully.docker kill container-name
- Forcefully stop a running container.docker restart container-name
- Restart a container.docker rm container-name
- Remove a stopped container.
docker-compose down