mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-11 14:13:23 +00:00
Coolify injects HOST=0.0.0.0 and zsh's prompt reads $HOST instead of the
real hostname, so hostname: alone shows user@0. Set HOST=${SERVICE_HOSTNAME}
again in code-server, code-server-lsio and paseo.
24 lines
703 B
YAML
24 lines
703 B
YAML
services:
|
|
code-server:
|
|
build: .
|
|
restart: unless-stopped
|
|
hostname: ${SERVICE_HOSTNAME}
|
|
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:
|