chore(docker): improve compose configuration

Set expected environment variables using host one.
This commit is contained in:
João Paulo Dubas 2024-12-08 23:51:14 +00:00
parent 1d1c164f03
commit 3432de974e
Signed by: joao.dubas
SSH Key Fingerprint: SHA256:V1mixgOGRc/YMhGx/DNkOSmJxgA2vHNrDZEk3wt/kOA

View File

@ -1,13 +1,20 @@
---
services:
nvim:
build: .
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: ${NVIM_GH_TOKEN:-no-token}
volumes:
- './config/atuin:/home/coder/.config/atuin'
- './config/git:/home/coder/.config/git'