sunucu kurulumu değişiklikleri

This commit is contained in:
Sedat ÖZTÜRK 2025-05-22 17:34:40 +03:00
parent 7cbd593679
commit b04567bab6
6 changed files with 43 additions and 39 deletions

View file

@ -51,6 +51,38 @@
- cd sozsoft.com/ - cd sozsoft.com/
- sudo chmod 775 * - sudo chmod 775 *
## Git Kurulumu
- cd ~
- git config --global http.sslVerify false
- git clone https://github.com/iamsedatozturk/kurs-platform.git
- cd kurs-platform/
- git config core.fileMode false
- chmod 775 *
- cd configs/deployment
- chmod 775 *
- cd configs
- chmod 775 *
- cd ..
- cd scripts
- chmod 775 *
- cd ~/kurs-platform/configs/deployment/scripts/
- İçerisindeki ihtiyaç olan scriptler çalıştırılır.
- n8n çalışmayınca n8n containerını çalıştırır ve hızlıca `docker run --rm -v kurs-devops_n8n_data:/data alpine chown -R 1000:1000 /data` kodu çalıştırılacak.
## Nginx Kurulumu
- sudo apt update
- sudo apt install nginx -y
- sudo systemctl status nginx
- sudo rm /etc/nginx/sites-enabled/default
- sudo rm /etc/nginx/sites-enabled/nginx.conf
- sudo cp ~/kurs-platform/configs/deployment/configs/nginx.conf /etc/nginx/sites-available/
- sudo ln -s /etc/nginx/sites-available/nginx.conf /etc/nginx/sites-enabled/
- sudo cp -r ./sozsoft.com /etc/ssl/sozsoft.com
- sudo systemctl restart nginx
- sudo nginx -t
## Forgejo kurulumu ayarları yapılacak ## Forgejo kurulumu ayarları yapılacak
- home klasöründeki `cd ~/forgejo/data/gitea/conf` klasörün altındaki app.ini dosyasına aşağıdaki satırlar eklenecek. - home klasöründeki `cd ~/forgejo/data/gitea/conf` klasörün altındaki app.ini dosyasına aşağıdaki satırlar eklenecek.
@ -99,28 +131,9 @@
chmod 775 * chmod 775 *
cd ~/kurs-platform cd ~/kurs-platform
docker compose -f ./docker-compose-devops.yml up -d docker compose -f ./docker-compose-devops.yml up -d
n8n çalışmayınca `docker run --rm -v kurs-devops_n8n_data:/data alpine chown -R 1000:1000 /data` kodu çalıştırılacak.
docker compose -f ./docker-compose-devops.yml down docker compose -f ./docker-compose-devops.yml down
docker compose -f ./docker-compose-devops.yml up -d docker compose -f ./docker-compose-devops.yml up -d
## Git Kurulumu
- cd ~
- git config --global http.sslVerify false
- git clone https://devops.sozsoft.com/kurs/kurs-platform.git
- cd kurs-platform/
- git config core.fileMode false
- chmod 775 *
- cd configs/deployment
- chmod 775 *
- cd configs
- chmod 775 *
- cd ..
- cd scripts
- chmod 775 *
- cd ~/kurs-platform
- ./build-production.sh
## hosts yönlendirme ## hosts yönlendirme
- 192.168.0.2 devops.sozsoft.com - 192.168.0.2 devops.sozsoft.com
- 192.168.0.2 chat.sozsoft.com - 192.168.0.2 chat.sozsoft.com

View file

@ -1,11 +0,0 @@
sudo apt update
sudo apt install nginx -y
sudo systemctl status nginx
sudo rm /etc/nginx/sites-enabled/nginx.conf
sudo cp ~/kurs-platform/configs/deployment/configs/nginx.conf /etc/nginx/sites-available/
sudo ln -s /etc/nginx/sites-available/nginx.conf /etc/nginx/sites-enabled/
sudo cp -r ./sozsoft.com /etc/ssl/sozsoft.com
sudo systemctl restart nginx
sudo nginx -t
docker run --rm -v kurs-devops_n8n_data:/data alpine chown -R 1000:1000 /data

View file

@ -107,6 +107,8 @@ services:
- N8N_PORT=5678 - N8N_PORT=5678
- NODE_ENV=production - NODE_ENV=production
- GENERIC_TIMEZONE=Europe/Istanbul - GENERIC_TIMEZONE=Europe/Istanbul
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
- N8N_RUNNERS_ENABLED=true
volumes: volumes:
- n8n_data:/home/node/.n8n - n8n_data:/home/node/.n8n
networks: networks: