ide/docker-compose.yml
Joao P Dubas 025a1e53fd feat(docker): ugprade docker/compose/buildx (#197)
* `docker` from 27.3.1 to 28.0.1
* `docker-compose` from v2.29.7 to v2.33.1
* `buildx` from v0.17.1 to v0.21.2

Also, enable [`docker buildx bake`][0] to build `docker` images.

Reviewed-on: #197

[0]: https://docs.docker.com/build/bake/
Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2025-03-14 12:10:24 +00:00

38 lines
1.2 KiB
YAML

---
services:
nvim:
build:
context: .
args:
GIT_USER_EMAIL: ${NVIM_GIT_USER_EMAIL:-nobody@example.com}
GIT_USER_NAME: ${NVIM_GIT_USER_NAME:-noboby}
image: 'joaodubas/nvim:${NVIM_TAG:-latest}'
init: true
restart: unless-stopped
hostname: local
entrypoint: sleep
command: infinity
environment:
ANTHROPIC_API_KEY: ${NVIM_ANTHROPIC_API_KEY:-no-api}
GH_TOKEN: &github_token ${NVIM_GH_TOKEN:-no-token}
GITHUB_TOKEN: *github_token
COMPOSE_BAKE: 'true'
volumes:
- './config/atuin:/home/coder/.config/atuin'
- './config/git:/home/coder/.config/git'
- './config/mise:/home/coder/.config/mise'
- './config/nvim/lua/custom:/home/coder/.config/nvim/lua/custom'
- './config/starship:/home/coder/.config/starship'
- './config/tmux:/home/coder/.config/tmux'
- './config/tmuxp:/home/coder/.config/tmuxp'
- 'home_cache:/home/coder/.cache'
- 'home_local_share:/home/coder/.local/share'
- 'home_local_state:/home/coder/.local/state'
- 'home_plugins_tmux:/home/coder/.config/tmux/plugins'
volumes:
home_cache: {}
home_local_share: {}
home_local_state: {}
home_plugins_tmux: {}