aboutsummaryrefslogtreecommitdiff
path: root/template/docker-compose.yaml.template
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-10-30 22:44:26 +0800
committercrupest <crupest@outlook.com>2022-10-30 22:44:26 +0800
commitefdfc6feb5744d8ad4bd07e35fa8d662925e3e96 (patch)
tree54352395daf743185d88c6e9540b690e95f7e5d0 /template/docker-compose.yaml.template
parentfc3eb7968a204c78153946e260289ff2f4c695e7 (diff)
downloadcrupest-efdfc6feb5744d8ad4bd07e35fa8d662925e3e96.tar.gz
crupest-efdfc6feb5744d8ad4bd07e35fa8d662925e3e96.tar.bz2
crupest-efdfc6feb5744d8ad4bd07e35fa8d662925e3e96.zip
...
Diffstat (limited to 'template/docker-compose.yaml.template')
-rw-r--r--template/docker-compose.yaml.template13
1 files changed, 8 insertions, 5 deletions
diff --git a/template/docker-compose.yaml.template b/template/docker-compose.yaml.template
index 0367605..5cc6d10 100644
--- a/template/docker-compose.yaml.template
+++ b/template/docker-compose.yaml.template
@@ -32,17 +32,20 @@ services:
- internal
code-server:
- image: codercom/code-server:latest
+ build:
+ context: ./docker/code-server
+ dockerfile: Dockerfile
+ args:
+ - CRUPEST_USER={{CRUPEST_USER}}
+ - CRUPEST_GROUP={{CRUPEST_GROUP}}
+ - CRUPEST_UID={{CRUPEST_UID}}
+ - CRUPEST_GID={{CRUPEST_GID}}
container_name: code_server
restart: on-failure:3
volumes:
- ./data/code-server:/data
- - ./data/code-server-config.yaml:/home/coder/.config/code-server/config.yaml
ports:
- "8080:8080"
- environment:
- - "DOCKER_USER=$USER"
- user: "{{CRUPEST_UID}}:{{CRUPEST_GID}}"
networks:
- internal