Difference between revisions of "Deploy a Gitea stack"

From EN Ikoula wiki
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽
Line 1: Line 1:
 +
<span data-link_translate_pt_title="Implantação de uma pilha de Gitea"  data-link_translate_pt_url="Implantação de uma pilha de Gitea"></span>[[:pt:Implantação de uma pilha de Gitea]][[pt:Implantação de uma pilha de Gitea]]
 
<span data-link_translate_es_title="Despliegue de una pila Gitea"  data-link_translate_es_url="Despliegue de una pila Gitea"></span>[[:es:Despliegue de una pila Gitea]][[es:Despliegue de una pila Gitea]]
 
<span data-link_translate_es_title="Despliegue de una pila Gitea"  data-link_translate_es_url="Despliegue de una pila Gitea"></span>[[:es:Despliegue de una pila Gitea]][[es:Despliegue de una pila Gitea]]
 
<span data-link_translate_en_title="Deploy a Gitea stack"  data-link_translate_en_url="Deploy a Gitea stack"></span>[[:en:Deploy a Gitea stack]][[en:Deploy a Gitea stack]]
 
<span data-link_translate_en_title="Deploy a Gitea stack"  data-link_translate_en_url="Deploy a Gitea stack"></span>[[:en:Deploy a Gitea stack]][[en:Deploy a Gitea stack]]

Revision as of 11:35, 30 July 2021

pt:Implantação de uma pilha de Gitea es:Despliegue de una pila Gitea en:Deploy a Gitea stack fr:Déployer une stack Gitea


Prerequisites

In order to be able to deploy a "stack Gitea" you can follow the official documentation of the project :

Documentation Gitea

To do this you must have :

  • a functional GNU / Linux system to which you will have access in SSH
  • a docker and docker facility



You can perform this installation from a Physical Machine, a Virtual Machine or a Cloud Ikoula One Instance.

Deployment of Gitea

Deploying your "Stack" Giteawill be made using a file that you will have beforehand create or deposit in a folder to which the user will have access.

In our example we will deploy with the support of Postgres as SGBD (you can replace by the couple of login passwords of your choice):

version: "2"

networks:
  gitea:
    external: false

services:
  server:
    image: gitea/gitea:latest
    environment:
      - USER_UID=1000
      - USER_GID=1000
    restart: always
    networks:
      - gitea
    volumes:
      - /var/lib/persistent/gitea:/data
    ports:
      - "80:3000"
      - "222:22"
    depends_on:
      - db

  db:
    image: postgres:9.6
    restart: always
    environment:
      - POSTGRES_USER=gitea
      - POSTGRES_PASSWORD=gitea
      - POSTGRES_DB=gitea
    networks:
      - gitea
    volumes:
      - /var/lib/persistent/postgres:/var/lib/postgresql/data

Be sure to open TCP ports 3000 and 222 on the host.

To run your composer.yml file in the background from the folder where the file is stored :

# docker-compose up -d

All you need to do is complete the form to finalize the installation and access your Gitea stack.

http://VOTRE_IP

You should now be able to connect to your Stack Gitea on the Web and SSH from the authorized IPs on your firewall. It is quite possible to make your Gitea stack coexist with other services behind a reverse Proxy in such a case free to you to modify at your convenience the listening port of the WEB service.


Gitea

Catégorie :Cloudstack Catégorie :Cloud public Catégorie:Serveur dédié Catégorie:Linux Catégorie:FLEX