Deploy a Gitea stack

From EN Ikoula wiki
Revision as of 11:29, 30 August 2019 by Aouarab4ab79 (talk | contribs) (Created page with "<span data-link_translate_en_title="Deploy a Gitea stack" data-link_translate_en_url="Deploy a Gitea stack"></span>en:Deploy a Gitea stacken:Deploy a Gitea stack <sp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

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