Compare commits
	
		
			1 Commits
		
	
	
		
			2.2.0+1.19
			...
			postgres-d
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| a88aa78561 | 
							
								
								
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							@ -3,17 +3,14 @@ kind: pipeline
 | 
			
		||||
name: deploy to swarm-test.autonomic.zone
 | 
			
		||||
steps:
 | 
			
		||||
  - name: deployment
 | 
			
		||||
    image: thecoopcloud/stack-ssh-deploy:latest
 | 
			
		||||
    image: decentral1se/stack-ssh-deploy:latest
 | 
			
		||||
    settings:
 | 
			
		||||
      host: swarm-test.autonomic.zone
 | 
			
		||||
      stack: gitea
 | 
			
		||||
      networks:
 | 
			
		||||
       - proxy
 | 
			
		||||
      generate_secrets: true
 | 
			
		||||
      purge: true
 | 
			
		||||
      deploy_key:
 | 
			
		||||
        from_secret: drone_ssh_swarm_test
 | 
			
		||||
      compose: "compose.yml:compose.mariadb.yml"
 | 
			
		||||
    environment:
 | 
			
		||||
      APP_INI_VERSION: v1
 | 
			
		||||
      DOCKER_SETUP_SH_VERSION: v1
 | 
			
		||||
@ -40,17 +37,11 @@ trigger:
 | 
			
		||||
    - master
 | 
			
		||||
---
 | 
			
		||||
kind: pipeline
 | 
			
		||||
name: generate recipe catalogue
 | 
			
		||||
name: recipe release
 | 
			
		||||
steps:
 | 
			
		||||
  - name: release a new version
 | 
			
		||||
    image: plugins/downstream
 | 
			
		||||
    image: thecoopcloud/drone-abra:latest
 | 
			
		||||
    settings:
 | 
			
		||||
      server: https://build.coopcloud.tech
 | 
			
		||||
      token:
 | 
			
		||||
        from_secret: drone_abra-bot_token
 | 
			
		||||
      fork: true
 | 
			
		||||
      repositories:
 | 
			
		||||
        - coop-cloud/auto-recipes-catalogue-json
 | 
			
		||||
 | 
			
		||||
trigger:
 | 
			
		||||
  event: tag
 | 
			
		||||
      command: recipe gitea release
 | 
			
		||||
      deploy_key:
 | 
			
		||||
        from_secret: abra_bot_deploy_key
 | 
			
		||||
 | 
			
		||||
@ -6,9 +6,6 @@ COMPOSE_FILE="compose.yml"
 | 
			
		||||
COMPOSE_FILE="$COMPOSE_FILE:compose.mariadb.yml"
 | 
			
		||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.postgres.yml"
 | 
			
		||||
 | 
			
		||||
# Enable to use forgejo instead of gitea
 | 
			
		||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.forgejo.yml"
 | 
			
		||||
 | 
			
		||||
GITEA_DOMAIN=git.example.com
 | 
			
		||||
GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION=true
 | 
			
		||||
GITEA_APP_NAME="Git with solidaritea"
 | 
			
		||||
 | 
			
		||||
@ -19,9 +19,9 @@
 | 
			
		||||
2. Deploy [`coop-cloud/traefik`][cc-traefik]
 | 
			
		||||
3. `abra app new gitea --secrets` (optionally with `--pass` if you'd like
 | 
			
		||||
   to save secrets in `pass`)
 | 
			
		||||
4. `abra app config YOURAPPDOMAIN` - be sure to change `$DOMAIN` to something that resolves to
 | 
			
		||||
4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to
 | 
			
		||||
   your Docker swarm box
 | 
			
		||||
5. `abra app deploy YOURAPPDOMAIN`
 | 
			
		||||
5. `abra app YOURAPPDOMAIN deploy`
 | 
			
		||||
 | 
			
		||||
## Create first user
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -71,10 +71,3 @@ ENABLED         = true
 | 
			
		||||
FILE_EXTENSIONS = .rst
 | 
			
		||||
RENDER_COMMAND  = rst2html
 | 
			
		||||
IS_INPUT_FILE   = false
 | 
			
		||||
 | 
			
		||||
[log]
 | 
			
		||||
MODE=console
 | 
			
		||||
LEVEL=WARN
 | 
			
		||||
STACKTRACE_LEVEL=None
 | 
			
		||||
ENABLE_ACCESS_LOG=false
 | 
			
		||||
ENABLE_XORM_LOG=false
 | 
			
		||||
 | 
			
		||||
@ -1,5 +0,0 @@
 | 
			
		||||
version: '3.8'
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  app:
 | 
			
		||||
    image: codeberg.org/forgejo/forgejo:1.19.3-0-rootless
 | 
			
		||||
@ -8,7 +8,7 @@ services:
 | 
			
		||||
      - GITEA_DB_NAME=gitea
 | 
			
		||||
      - GITEA_DB_USER=gitea
 | 
			
		||||
  db:
 | 
			
		||||
    image: "mariadb:10.11.2"
 | 
			
		||||
    image: "mariadb:10.9"
 | 
			
		||||
    command: |
 | 
			
		||||
      mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
 | 
			
		||||
    environment:
 | 
			
		||||
 | 
			
		||||
@ -8,7 +8,7 @@ services:
 | 
			
		||||
      - GITEA_DB_NAME=gitea
 | 
			
		||||
      - GITEA_DB_USER=gitea
 | 
			
		||||
  db:
 | 
			
		||||
    image: postgres:15.3
 | 
			
		||||
    image: postgres:9.6
 | 
			
		||||
    environment: 
 | 
			
		||||
      - POSTGRES_DB=gitea
 | 
			
		||||
      - POSTGRES_USER=gitea
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										10
									
								
								compose.yml
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								compose.yml
									
									
									
									
									
								
							@ -3,7 +3,7 @@ version: "3.8"
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  app:
 | 
			
		||||
    image: "gitea/gitea:1.19.3-rootless"
 | 
			
		||||
    image: "gitea/gitea:1.17.3-rootless"
 | 
			
		||||
    configs:
 | 
			
		||||
      - source: app_ini
 | 
			
		||||
        target: /etc/gitea/app.ini
 | 
			
		||||
@ -34,7 +34,6 @@ services:
 | 
			
		||||
      - GITEA_UPDATE_AVATAR
 | 
			
		||||
      - GITEA_ACCOUNT_LINKING
 | 
			
		||||
      - GITEA_OAUTH2_CLIENT_ENABLED
 | 
			
		||||
      - GITEA_CORS_ALLOW_DOMAIN
 | 
			
		||||
    volumes:
 | 
			
		||||
      - data:/var/lib/gitea
 | 
			
		||||
      - config:/etc/gitea
 | 
			
		||||
@ -56,12 +55,7 @@ services:
 | 
			
		||||
        - "traefik.tcp.routers.${STACK_NAME}-ssh.rule=HostSNI(`*`)"
 | 
			
		||||
        - "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh"
 | 
			
		||||
        - "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}"
 | 
			
		||||
        - "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}_cors"
 | 
			
		||||
        - "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolallowmethods=GET,OPTIONS,PUT"
 | 
			
		||||
        - "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolalloworiginlist=https://${GITEA_CORS_ALLOW_DOMAIN}"
 | 
			
		||||
        - "traefik.http.middlewares.${STACK_NAME}_cors.headers.accesscontrolmaxage=100"
 | 
			
		||||
        - "traefik.http.middlewares.${STACK_NAME}_cors.headers.addvaryheader=true"
 | 
			
		||||
        - coop-cloud.${STACK_NAME}.version=2.2.0+1.19.3-rootless
 | 
			
		||||
        - coop-cloud.${STACK_NAME}.version=1.3.1+1.17.3-rootless
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
networks:
 | 
			
		||||
 | 
			
		||||
@ -1,8 +0,0 @@
 | 
			
		||||
This release adds the possibility to run gitea with postgres.
 | 
			
		||||
Please add the following lines to your servers .env file!
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
COMPOSE_FILE="compose.yml"
 | 
			
		||||
COMPOSE_FILE="$COMPOSE_FILE:compose.mariadb.yml"
 | 
			
		||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.postgres.yml"
 | 
			
		||||
```
 | 
			
		||||
@ -1,2 +0,0 @@
 | 
			
		||||
Beware that you'll also be updating Postgres if you're running it. Usually with major updates it might involve pg_dumpall / pg_restore either side of the upgrade because the server app doesn't know how to upgrade data storage formats, won't launch if it detects an old data format, a pg_upgrade command is available. More info on https://git.coopcloud.tech/coop-cloud/gitea/pulls/31
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user