-
Notifications
You must be signed in to change notification settings - Fork 6.3k
-
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
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
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:
Beta Was this translation helpful? Give feedback.
All reactions
1 reply
-
volumes:
- /home/docker/codeserver/data:/home/coder
- /home/docker/prometheus/data/file.yaml:/home/coder/prometheus/file.yaml
Beta Was this translation helpful? Give feedback.
All reactions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment