mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-20 14:15:21 +00:00
25 lines
721 B
YAML
25 lines
721 B
YAML
services:
|
|
code-server:
|
|
build: .
|
|
restart: unless-stopped
|
|
hostname: ${SERVICE_HOSTNAME}
|
|
shm_size: 1gb
|
|
environment:
|
|
- PASSWORD=${PASSWORD:?required}
|
|
- TZ=Asia/Ho_Chi_Minh
|
|
- DEFAULT_WORKSPACE=/workspace
|
|
- SHELL=/bin/zsh
|
|
- GIT_AUTHOR_NAME=${GIT_NAME}
|
|
- GIT_AUTHOR_EMAIL=${GIT_EMAIL}
|
|
- GIT_COMMITTER_NAME=${GIT_NAME}
|
|
- GIT_COMMITTER_EMAIL=${GIT_EMAIL}
|
|
- HOST=${SERVICE_HOSTNAME}
|
|
# - CODE_SERVER_APP_NAME=${CODE_SERVER_APP_NAME:-code-server}
|
|
volumes:
|
|
- 'code-server-home:/home/coder'
|
|
- 'code-server-workspace:/workspace'
|
|
- '/var/run/docker.sock:/var/run/docker.sock:ro'
|
|
volumes:
|
|
code-server-home:
|
|
code-server-workspace:
|