* Set `GITHUB_TOKEN` based on `GH_TOKEN` * Enable [`docker buildx bake`][0] as the default engine to build images [0]: https://docs.docker.com/build/bake/
38 lines
1.2 KiB
YAML
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: {}
|