Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

choose which files are in a particular docker volume instead of all #7032

Unanswered
1mfaasj asked this question in General
Discussion options

Hi, I've got a quick (hopefully simple) question. I'm using codeserver in docker like mentioned below.
When I add an own volume path like: /home/docker/prometheus/data
it's picking up all the files in it and exposing it to codeserver.
but is it also possible to only picking up the .YAML files for instance?

services:
 codeserver:
 container_name: codeserver
 image: codercom/code-server:latest
 ports:
 - 8090:8080
 volumes:
 - /home/docker/codeserver/data:/home/coder
 - /home/docker/prometheus/data:/home/coder/prometheus
 environment:
 - PASSWORD=xxx
 restart: always
You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

You can mount individual files with Docker (I believe) but I do not think there is a way to mount an entire directory and filter the files. For example:

You must be logged in to vote
1 reply
Comment options

 volumes:
 - /home/docker/codeserver/data:/home/coder
 - /home/docker/prometheus/data/file.yaml:/home/coder/prometheus/file.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /