fix bind mount and add login
This commit is contained in:
parent
65b41749de
commit
d17da372b2
2 changed files with 6 additions and 4 deletions
|
@ -2,4 +2,7 @@
|
|||
CODESERVER_VERSION=latest
|
||||
|
||||
# Code-Server Domain
|
||||
CODESERVER_DOMAIN=code.example.com
|
||||
CODESERVER_DOMAIN=code.example.com
|
||||
|
||||
# Code-Server Login Password
|
||||
CODESERVER_PASSWORD=secret_password
|
|
@ -4,13 +4,12 @@ services:
|
|||
container_name: code-server
|
||||
environment:
|
||||
- DOCKER_USER=$USER
|
||||
user: '$(id -u):$(id -g)'
|
||||
- PASSWORD=${CODESERVER_PASSWORD:?error}
|
||||
tty: true
|
||||
stdin_open: true
|
||||
volumes:
|
||||
- './data/project:/home/coder/project'
|
||||
- './data/config:/home/coder/.config'
|
||||
- './data/local:/home/coder/.local'
|
||||
- './data/config:/config'
|
||||
networks:
|
||||
- traefik
|
||||
labels:
|
||||
|
|
Loading…
Add table
Reference in a new issue