fix bind mount and add login

This commit is contained in:
Kevin Heyer 2025-03-18 03:54:32 +00:00
parent 65b41749de
commit d17da372b2
2 changed files with 6 additions and 4 deletions

View file

@ -2,4 +2,7 @@
CODESERVER_VERSION=latest CODESERVER_VERSION=latest
# Code-Server Domain # Code-Server Domain
CODESERVER_DOMAIN=code.example.com CODESERVER_DOMAIN=code.example.com
# Code-Server Login Password
CODESERVER_PASSWORD=secret_password

View file

@ -4,13 +4,12 @@ services:
container_name: code-server container_name: code-server
environment: environment:
- DOCKER_USER=$USER - DOCKER_USER=$USER
user: '$(id -u):$(id -g)' - PASSWORD=${CODESERVER_PASSWORD:?error}
tty: true tty: true
stdin_open: true stdin_open: true
volumes: volumes:
- './data/project:/home/coder/project' - './data/project:/home/coder/project'
- './data/config:/home/coder/.config' - './data/config:/config'
- './data/local:/home/coder/.local'
networks: networks:
- traefik - traefik
labels: labels: