Dockerized Neovim with Coc installed plugin
Docker container which has Neovim's Coc plugin with "[node|rust|python]" language server.
- Docker run
docker run -e "NEOVIM_UID=1000" -e "NEOVIM_GID=1000" -e "NEOVIM_MNT_DIR=/path/to/project" -v /path/to/project:/mnt/project kolserdav/coc-neovim-[node|rust|python]:latest
- Docker compose
services:
neovim:
image: kolserdav/coc-nvim-[node|rust|python]
container_name: neovim-[node|rust|python]
environment:
UID: ${NEOVIM_UID}
GID: ${NEOVIM_GID}
volumes:
- ${NEOVIM_MNT_DIR}:/mnt/project
- neovim:/home/node/.local/share
#- ./custom.sh:/home/node/custom.sh
hostname: neovim-[node|rust|python]
volumes:
neovim: {}
NEOVIM_UID
- Host system user idNEOVIM_GID
- Host system group id
/path/to/project:/mnt/project
- Access to project files from containerneovim:/home/node/.local/share
- Save nvim config between container recreates
Source: coc-nvim-dockerized