ok
This commit is contained in:
		
							
								
								
									
										8
									
								
								Repository/Gitea/.env
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Repository/Gitea/.env
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
GITEA_VERSION=latest
 | 
			
		||||
GITEA_HOSTNAME=localhost
 | 
			
		||||
GITEA_WEB_PORT=3000
 | 
			
		||||
GITEA_SSH_PORT=2222
 | 
			
		||||
MYSQL_ROOT_PASSWORD=root
 | 
			
		||||
MYSQL_DATABASE=gitea
 | 
			
		||||
MYSQL_USER=gitea
 | 
			
		||||
MYSQL_PASSWORD=gitea
 | 
			
		||||
							
								
								
									
										30
									
								
								Repository/Gitea/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								Repository/Gitea/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
# Gitea
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Installation
 | 
			
		||||
 | 
			
		||||
Pour utiliser Gitea tout seul
 | 
			
		||||
```bash
 | 
			
		||||
docker compose up -d
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Pour utiliser Gitea avec Traefik
 | 
			
		||||
```bash
 | 
			
		||||
docker compose -f docker-compose-traefik.yml up -d
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Pour utiliser Gitea avec Nginx
 | 
			
		||||
```bash
 | 
			
		||||
docker compose -f docker-compose-nginx.yml up -d
 | 
			
		||||
```
 | 
			
		||||
# Utilisation
 | 
			
		||||
 | 
			
		||||
## Accueil
 | 
			
		||||
 | 
			
		||||
# More info
 | 
			
		||||
- more information on the website [Tips-Of-Mine](https://www.tips-of-mine.fr/)
 | 
			
		||||
 | 
			
		||||
# Buy me a coffe
 | 
			
		||||
<a href='https://ko-fi.com/R5R2KNI3N' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>s
 | 
			
		||||
							
								
								
									
										0
									
								
								Repository/Gitea/docker-compose-traefik.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								Repository/Gitea/docker-compose-traefik.yml
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										59
									
								
								Repository/Gitea/docker-compose.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										59
									
								
								Repository/Gitea/docker-compose.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,59 @@
 | 
			
		||||
#### NETWORKS
 | 
			
		||||
networks:
 | 
			
		||||
  docker-traefik_front_network:
 | 
			
		||||
    external: true
 | 
			
		||||
  back_network:
 | 
			
		||||
    driver: bridge
 | 
			
		||||
    attachable: true
 | 
			
		||||
 | 
			
		||||
#### SERVICES
 | 
			
		||||
services:
 | 
			
		||||
 | 
			
		||||
### gitea
 | 
			
		||||
  gitea:
 | 
			
		||||
    container_name: gitea-app
 | 
			
		||||
    hostname: gitea-app
 | 
			
		||||
    image: gitea/gitea:${GITEA_VERSION}
 | 
			
		||||
    environment:
 | 
			
		||||
      - USER_UID=1000
 | 
			
		||||
      - USER_GID=1000
 | 
			
		||||
      - GITEA__database__DB_TYPE=postgres
 | 
			
		||||
      - GITEA__database__HOST=db:5432
 | 
			
		||||
      - GITEA__database__NAME=gitea
 | 
			
		||||
      - GITEA__database__USER=gitea
 | 
			
		||||
      - GITEA__database__PASSWD=gitea
 | 
			
		||||
    restart: always
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./gitea:/data
 | 
			
		||||
    depends_on:
 | 
			
		||||
      - postgres
 | 
			
		||||
    networks:
 | 
			
		||||
      - back_network
 | 
			
		||||
      - docker-traefik_front_network
 | 
			
		||||
    labels:
 | 
			
		||||
      - "traefik.enable=true"
 | 
			
		||||
      - "traefik.http.routers.gitea-secure.entrypoints=https"
 | 
			
		||||
      - "traefik.http.routers.gitea-secure.rule=Host(`gitea.jimsgarage.co.uk`)"
 | 
			
		||||
      - "traefik.http.routers.gitea-secure.tls=true"
 | 
			
		||||
      - "traefik.http.routers.gitea-secure.service=gitea@docker"
 | 
			
		||||
      - "traefik.http.services.gitea.loadbalancer.server.port=3000"
 | 
			
		||||
      - "traefik.docker.network=proxy"
 | 
			
		||||
    security_opt:
 | 
			
		||||
      - no-new-privileges:true
 | 
			
		||||
 | 
			
		||||
### postgres
 | 
			
		||||
  postgres:
 | 
			
		||||
    container_name: gitea-postgres
 | 
			
		||||
    hostname: gitea-postgres
 | 
			
		||||
    image: postgres:14
 | 
			
		||||
    restart: always
 | 
			
		||||
    environment:
 | 
			
		||||
      PGDATA: /var/lib/postgresql/data/gitea
 | 
			
		||||
      POSTGRES_DB: gitea_db
 | 
			
		||||
      POSTGRES_PASSWORD: 'P@ssword!Here!123456'
 | 
			
		||||
      POSTGRES_USER: gitea_user
 | 
			
		||||
      TZ: Europe/Paris
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./postgres:/var/lib/postgresql/data
 | 
			
		||||
    networks:
 | 
			
		||||
      - back_network
 | 
			
		||||
							
								
								
									
										0
									
								
								Repository/Gitea/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								Repository/Gitea/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										
											BIN
										
									
								
								Repository/Gitea/img/logo-Gitea.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Repository/Gitea/img/logo-Gitea.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 5.2 KiB  | 
		Reference in New Issue
	
	Block a user