diff options
| author | crupest <crupest@outlook.com> | 2022-10-30 22:44:26 +0800 | 
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-10-30 22:44:26 +0800 | 
| commit | 31367d9feb0dc8ea759a41eb9b0179b3aee65f67 (patch) | |
| tree | 54352395daf743185d88c6e9540b690e95f7e5d0 /template/docker-compose.yaml.template | |
| parent | ef1340f8a5143f9a266197426234ac1c1607974f (diff) | |
| download | crupest-31367d9feb0dc8ea759a41eb9b0179b3aee65f67.tar.gz crupest-31367d9feb0dc8ea759a41eb9b0179b3aee65f67.tar.bz2 crupest-31367d9feb0dc8ea759a41eb9b0179b3aee65f67.zip  | |
...
Diffstat (limited to 'template/docker-compose.yaml.template')
| -rw-r--r-- | template/docker-compose.yaml.template | 13 | 
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  | 
