aboutsummaryrefslogtreecommitdiff
path: root/dropped/template
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-06 22:15:14 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-06 22:15:14 +0800
commit4442aad817bd028d40560ce8bfefad36f60ef27e (patch)
tree50103cbad8d2611f3ae1bffdf3922b3162b36910 /dropped/template
parente8354c30f2fc3a934a2a941b3bbb9c2449081051 (diff)
downloadcrupest-4442aad817bd028d40560ce8bfefad36f60ef27e.tar.gz
crupest-4442aad817bd028d40560ce8bfefad36f60ef27e.tar.bz2
crupest-4442aad817bd028d40560ce8bfefad36f60ef27e.zip
feat(service): disable code-server service.
Diffstat (limited to 'dropped/template')
-rw-r--r--dropped/template/docker-compose.yaml.template20
-rw-r--r--dropped/template/nginx/code.conf.template20
2 files changed, 40 insertions, 0 deletions
diff --git a/dropped/template/docker-compose.yaml.template b/dropped/template/docker-compose.yaml.template
index 73ff4e8..1b28c5b 100644
--- a/dropped/template/docker-compose.yaml.template
+++ b/dropped/template/docker-compose.yaml.template
@@ -1,4 +1,21 @@
services:
+ debian-dev:
+ pull_policy: build
+ build:
+ context: ./docker/debian-dev
+ dockerfile: Dockerfile
+ pull: true
+ args:
+ - USER=crupest
+ tags:
+ - "crupest/debian-dev:latest"
+ container_name: debian-dev
+ init: true
+ command: [ "/bootstrap/start/code-server.bash" ]
+ volumes:
+ - ./data/debian-dev:/data
+ - debian-dev-home:/home/crupest
+ restart: on-failure:3
timeline:
image: crupest/timeline:latest
@@ -22,3 +39,6 @@ services:
container_name: crupest-api
volumes:
- "./crupest-api-config.json:/crupest-api-config.json:ro"
+
+volumes:
+ debian-dev-home:
diff --git a/dropped/template/nginx/code.conf.template b/dropped/template/nginx/code.conf.template
new file mode 100644
index 0000000..205c7ba
--- /dev/null
+++ b/dropped/template/nginx/code.conf.template
@@ -0,0 +1,20 @@
+server {
+ server_name code.${CRUPEST_DOMAIN};
+ include common/https-listen;
+
+ location / {
+ include common/proxy-common;
+ proxy_pass http://debian-dev:8080/;
+ }
+
+ client_max_body_size 5G;
+}
+
+
+server {
+ server_name code.${CRUPEST_DOMAIN};
+ include common/http-listen;
+
+ include common/https-redirect;
+ include common/acme-challenge;
+}