dockercompose

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b0b889e158a44c34097465a532342a861890b1f3
parent d0ce0f6e3c737548cc878f497466f81edb521205
Author: AndrewLockVI <andrewlaack1@gmail.com>
Date:   Fri, 10 Jan 2025 04:15:33 -0600

I don't know why, but this works now.

Diffstat:
Adefault | 12++++++++++++
Mdocker-compose.yml | 24++++++++++++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/default b/default @@ -0,0 +1,12 @@ +location ~ (/.*) { + client_max_body_size 0; # Git pushes can be massive, just to make sure nginx doesn't suddenly cut the connection add this. + auth_basic "Git Login"; # Whatever text will do. + auth_basic_user_file "/var/www/html/git/htpasswd"; + include /etc/nginx/fastcgi_params; # Include the default fastcgi configs + fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend; # Tells fastcgi to pass the request to the git http backend executable + fastcgi_param GIT_HTTP_EXPORT_ALL ""; + fastcgi_param GIT_PROJECT_ROOT /var/www/html/git; # /var/www/git is the location of all of your git repositories. + fastcgi_param REMOTE_USER $remote_user; + fastcgi_param PATH_INFO $1; # Takes the capture group from our location directive and gives git that. + fastcgi_pass unix:/var/run/fcgiwrap.socket; # Pass the request to fastcgi +} diff --git a/docker-compose.yml b/docker-compose.yml @@ -22,6 +22,7 @@ services: - ../configCalibre:/config - /home/shared/books:/books restart: unless-stopped + web-server: image: nginx:latest container_name: web-server @@ -29,6 +30,27 @@ services: - "80:80" volumes: - ../html:/usr/share/nginx/html + restart: unless-stopped + + git-server: + image: nginx:latest + container_name: git-server + ports: + - "90:80" + volumes: + - ../../git/site:/usr/share/nginx/html + restart: unless-stopped + + git-repo-server: + image: nginx:latest + container_name: git-repo-server + ports: + - "8097:80" + volumes: + - ../../git/public-repos:/usr/share/nginx/html:ro + - ./default:/etc/nginx/sites-available/default + restart: unless-stopped + navidrome: image: deluan/navidrome:latest ports: @@ -42,6 +64,7 @@ services: volumes: - "../navidrome:/data" - "../../music:/music:ro" + vaultwarden: image: vaultwarden/server:latest container_name: vaultwarden @@ -52,3 +75,4 @@ services: - ../vw/:/data/ ports: - 999:80 + restart: unless-stopped