Compare commits
	
		
			12 Commits
		
	
	
		
			2.1.0+1.18
			...
			backup-lab
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 6643761eff | |||
| 2fe008de5a | |||
| 3915bf7493 | |||
| 46bb242fe7 | |||
| f9249f1284 | |||
| 9fe02cb19f | |||
| 1e612d84a2 | |||
| 77dd223f94 | |||
| d5577a0f75 | |||
| 8f5587099d | |||
| d56a1474fe | |||
| dc3f54d5ea | 
| @ -71,3 +71,10 @@ 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 | ||||
|  | ||||
| @ -2,4 +2,4 @@ version: '3.8' | ||||
|  | ||||
| services: | ||||
|   app: | ||||
|     image: codeberg.org/forgejo/forgejo:1.18.2-0-rootless | ||||
|     image: codeberg.org/forgejo/forgejo:1.20.1-0-rootless | ||||
|  | ||||
| @ -8,7 +8,13 @@ services: | ||||
|       - GITEA_DB_NAME=gitea | ||||
|       - GITEA_DB_USER=gitea | ||||
|   db: | ||||
|     image: "mariadb:10.9" | ||||
|     image: "mariadb:10.11.2" | ||||
|     deploy: | ||||
|       labels: | ||||
|           backupbot.backup: "true" | ||||
|           backupbot.backup.pre-hook: 'mysqldump --single-transaction -u root -p"$$(cat /run/secrets/db_root_password)" gitea > /var/lib/mysql/backup.sql' | ||||
|           backupbot.backup.post-hook: "rm -rf /var/lib/mysql/backup.sql" | ||||
|           backupbot.backup.path: "/var/lib/mysql/backup.sql" | ||||
|     command: | | ||||
|       mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci | ||||
|     environment: | ||||
|  | ||||
| @ -8,7 +8,13 @@ services: | ||||
|       - GITEA_DB_NAME=gitea | ||||
|       - GITEA_DB_USER=gitea | ||||
|   db: | ||||
|     image: postgres:9.6 | ||||
|     image: postgres:15.3 | ||||
|     deploy: | ||||
|       labels: | ||||
|           backupbot.backup: "true" | ||||
|           backupbot.backup.pre-hook: "PGPASSWORD=$$(cat $${POSTGRES_PASSWORD_FILE}) pg_dump -U $${POSTGRES_USER} $${POSTGRES_DB} > /var/lib/postgresql/data/backup.sql" | ||||
|           backupbot.backup.post-hook: "rm -r /var/lib/postgresql/data/backup.sql" | ||||
|           backupbot.backup.path: "/var/lib/postgresql/data" | ||||
|     environment:  | ||||
|       - POSTGRES_DB=gitea | ||||
|       - POSTGRES_USER=gitea | ||||
|  | ||||
| @ -3,7 +3,7 @@ version: "3.8" | ||||
|  | ||||
| services: | ||||
|   app: | ||||
|     image: "gitea/gitea:1.18.5-rootless" | ||||
|     image: "gitea/gitea:1.20.1-rootless" | ||||
|     configs: | ||||
|       - source: app_ini | ||||
|         target: /etc/gitea/app.ini | ||||
| @ -48,6 +48,7 @@ services: | ||||
|         failure_action: rollback | ||||
|         order: start-first | ||||
|       labels: | ||||
|         - "backupbot.backup=true" | ||||
|         - "traefik.enable=true" | ||||
|         - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)" | ||||
|         - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" | ||||
| @ -61,7 +62,7 @@ services: | ||||
|         - "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.1.0+1.18.5-rootless | ||||
|         - coop-cloud.${STACK_NAME}.version=2.3.0+1.20.1-rootless | ||||
|  | ||||
|  | ||||
| networks: | ||||
|  | ||||
							
								
								
									
										2
									
								
								release/2.1.2+1.19.3-rootless
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								release/2.1.2+1.19.3-rootless
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | ||||
| 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