dockercompose

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

commit 34de982942a89b32c3256ea0cc73af4e3613bdf0
parent ee7dfc1d3fed3199b3611124289514d6284c3c58
Author: andrew <andrew@brgr.localdomain>
Date:   Sun,  9 Feb 2025 00:15:01 -0600

Updated config

Diffstat:
Mdefault | 22+++++++++++-----------
Mdocker-compose.yml | 20++++++++++++++------
2 files changed, 25 insertions(+), 17 deletions(-)

diff --git a/default b/default @@ -1,12 +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 +server { + listen 80; + server_name localhost; + + location / { + root /usr/share/nginx/html; + autoindex on; # Enable directory listing + autoindex_exact_size off; # Optional: Disable showing file sizes in exact format + autoindex_localtime on; # Optional: Show file modification times in local time + } } + diff --git a/docker-compose.yml b/docker-compose.yml @@ -20,17 +20,15 @@ services: 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 + - /home/shared/git/public-repos:/usr/share/nginx/html restart: unless-stopped + ports: + - 8097:80 vaultwarden: image: vaultwarden/server:latest container_name: vaultwarden - restart: unless-stopped environment: DOMAIN: "https://www.laack.co" volumes: @@ -44,9 +42,19 @@ services: container_name: file-server environment: FILE_ACCESS_STRING: ${FILE_ACCESS_STRING} - command: -A -a ${FILE_ACCESS_STRING} + command: -A -a ${FILE_ACCESS_STRING} --assets /assets volumes: - /home/shared/fileSharing:/data + - /home/shared/fileSharingAssets/assets:/assets ports: - '4533:5000' restart: unless-stopped + + docs-server: + image: nginx:latest + container_name: docs-server + ports: + - "91:80" + volumes: + - ../docs:/usr/share/nginx/html + restart: unless-stopped