From 4618c4b66aa6210f2098e87c18d33fd11db5543f Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Sun, 27 Aug 2023 14:34:21 +0200 Subject: [PATCH] move bisect-rustc --- README.md | 4 ++++ new/playbooks/vps2.yml | 13 +++++++++++++ new/vps2/Caddyfile | 4 ++++ new/vps2/README.md | 11 ++++++----- new/vps2/docker-compose.yml | 10 ++++++++++ nginx/nginx.conf | 1 + 6 files changed, 38 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 26e3035..9035d72 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,7 @@ there once was some custom k8s cluster setup in `./k8s-cluster`. it was incomple also some kubernetes config in `./kube`. why. gloriously not great docker configs in `./docker`. + +`nginx`, `registry` with config for the two. + +`run_scripts` with not good scripts for starting containers. diff --git a/new/playbooks/vps2.yml b/new/playbooks/vps2.yml index 8f27729..6a24a29 100644 --- a/new/playbooks/vps2.yml +++ b/new/playbooks/vps2.yml @@ -59,6 +59,19 @@ state: directory mode: u=rwx,g=rx,o=rx ##### + # APP: bisect-rustc-servce, /apps/bisect-rustc-service + ##### + - name: Create /apps/bisect-rustc-service + ansible.builtin.file: + path: /apps/bisect-rustc-service + state: directory + mode: u=rwx,g=rx,o=rx + - name: SQLite DB permissions for bisect-rustc-servce + ansible.builtin.file: + path: /apps/bisect-rustc-service/db.sqlite + state: touch + mode: u=rw,g=,o= + ##### # END: docker compose up! ##### # We want this to be last so that all app-specific config has been done. diff --git a/new/vps2/Caddyfile b/new/vps2/Caddyfile index 932fa90..b56482c 100644 --- a/new/vps2/Caddyfile +++ b/new/vps2/Caddyfile @@ -62,3 +62,7 @@ api.cors-school.nilstrieb.dev { cors-school.nilstrieb.dev { reverse_proxy * localhost:5004 } + +bisect-rustc.nilstrieb.dev { + reverse_proxy * localhost:5005 +} diff --git a/new/vps2/README.md b/new/vps2/README.md index f7a4cf9..f95260f 100644 --- a/new/vps2/README.md +++ b/new/vps2/README.md @@ -1,7 +1,8 @@ ## ports -- 5000: registry -- 5001: hugo-chat server -- 5002: hugo-chat client -- 5003: cors-school server -- 5004: cors-school client +- `5000`: registry +- `5001`: hugo-chat server +- `5002`: hugo-chat client +- `5003`: cors-school server +- `5004`: cors-school client +- `5005`: cargo-bisect-rustc-service \ No newline at end of file diff --git a/new/vps2/docker-compose.yml b/new/vps2/docker-compose.yml index c6987a2..4b712cf 100644 --- a/new/vps2/docker-compose.yml +++ b/new/vps2/docker-compose.yml @@ -28,6 +28,16 @@ services: environment: BOT_TOKEN: "${KILLUA_BOT_TOKEN}" KILLUA_JSON_PATH: /app/config/trivia_questions.json + cargo_bisect_rustc_service: + container_name: cargo-bisect-rustc-service + image: "docker.nilstrieb.dev/cargo-bisect-rustc-service:13f89b68" + restart: always + volumes: + - "/apps/bisect-rustc-service/db.sqlite:/home/bisector/db.sqlite" + environment: + SQLITE_DB: /home/bisector/db.sqlite + ports: + - "5005:4000" #### Hugo Chat hugo_chat_db: container_name: hugo-chat-db diff --git a/nginx/nginx.conf b/nginx/nginx.conf index b16a40f..2c84404 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -17,6 +17,7 @@ http { } } + # MOVED server { listen 443 ssl;