From 1a5fdce7b715ca374092ba9d99aa952bd9f1ba52 Mon Sep 17 00:00:00 2001 From: Dan Van Atta Date: Tue, 11 Jun 2024 15:02:56 -0700 Subject: [PATCH] Remove unused .docker-compose folder (#12639) --- .docker-compose/connect-to-db.sh | 12 ------ .docker-compose/database/01-init.sql | 5 --- .docker-compose/nginx/default.conf | 57 ---------------------------- 3 files changed, 74 deletions(-) delete mode 100755 .docker-compose/connect-to-db.sh delete mode 100644 .docker-compose/database/01-init.sql delete mode 100644 .docker-compose/nginx/default.conf diff --git a/.docker-compose/connect-to-db.sh b/.docker-compose/connect-to-db.sh deleted file mode 100755 index 904ea997ade..00000000000 --- a/.docker-compose/connect-to-db.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -# Connect to a locally running database that was started up via docker-compose. - -set -eu - -DB_IP=$(docker inspect \ - --format='{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' \ - triplea-database-1) - -export PGPASSWORD=postgres -psql -h "$DB_IP" -U postgres diff --git a/.docker-compose/database/01-init.sql b/.docker-compose/database/01-init.sql deleted file mode 100644 index d63bf5c3a85..00000000000 --- a/.docker-compose/database/01-init.sql +++ /dev/null @@ -1,5 +0,0 @@ -create user lobby_user password 'lobby'; -create database lobby_db owner lobby_user; - -create user error_report_user password 'error_report'; -create database error_report owner error_report_user; diff --git a/.docker-compose/nginx/default.conf b/.docker-compose/nginx/default.conf deleted file mode 100644 index b37b111ebca..00000000000 --- a/.docker-compose/nginx/default.conf +++ /dev/null @@ -1,57 +0,0 @@ -server { - listen 80; - listen [::]:80; - server_name localhost; - - location / { - proxy_pass http://lobby:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_read_timeout 90; - } - - location /game-connection/ws { - proxy_pass http://lobby:8080; - proxy_http_version 1.1; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - } - - location /player-connection/ws { - proxy_pass http://lobby:8080; - proxy_http_version 1.1; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - } - - - location /game-support { - proxy_pass http://game-support-server:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_read_timeout 90; - } - - location /maps { - proxy_pass http://maps-server:8080; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_read_timeout 90; - } -}