Compare commits
	
		
			1 Commits
		
	
	
		
			2.3.0+1.20
			...
			cors-heade
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| fabd33037a | 
							
								
								
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							| @ -3,17 +3,14 @@ kind: pipeline | |||||||
| name: deploy to swarm-test.autonomic.zone | name: deploy to swarm-test.autonomic.zone | ||||||
| steps: | steps: | ||||||
|   - name: deployment |   - name: deployment | ||||||
|     image: thecoopcloud/stack-ssh-deploy:latest |     image: decentral1se/stack-ssh-deploy:latest | ||||||
|     settings: |     settings: | ||||||
|       host: swarm-test.autonomic.zone |       host: swarm-test.autonomic.zone | ||||||
|       stack: gitea |       stack: gitea | ||||||
|       networks: |  | ||||||
|        - proxy |  | ||||||
|       generate_secrets: true |       generate_secrets: true | ||||||
|       purge: true |       purge: true | ||||||
|       deploy_key: |       deploy_key: | ||||||
|         from_secret: drone_ssh_swarm_test |         from_secret: drone_ssh_swarm_test | ||||||
|       compose: "compose.yml:compose.mariadb.yml" |  | ||||||
|     environment: |     environment: | ||||||
|       APP_INI_VERSION: v1 |       APP_INI_VERSION: v1 | ||||||
|       DOCKER_SETUP_SH_VERSION: v1 |       DOCKER_SETUP_SH_VERSION: v1 | ||||||
| @ -40,17 +37,11 @@ trigger: | |||||||
|     - master |     - master | ||||||
| --- | --- | ||||||
| kind: pipeline | kind: pipeline | ||||||
| name: generate recipe catalogue | name: recipe release | ||||||
| steps: | steps: | ||||||
|   - name: release a new version |   - name: release a new version | ||||||
|     image: plugins/downstream |     image: thecoopcloud/drone-abra:latest | ||||||
|     settings: |     settings: | ||||||
|       server: https://build.coopcloud.tech |       command: recipe gitea release | ||||||
|       token: |       deploy_key: | ||||||
|         from_secret: drone_abra-bot_token |         from_secret: abra_bot_deploy_key | ||||||
|       fork: true |  | ||||||
|       repositories: |  | ||||||
|         - coop-cloud/auto-recipes-catalogue-json |  | ||||||
|  |  | ||||||
| trigger: |  | ||||||
|   event: tag |  | ||||||
|  | |||||||
							
								
								
									
										21
									
								
								.env.sample
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								.env.sample
									
									
									
									
									
								
							| @ -2,12 +2,6 @@ TYPE=gitea | |||||||
|  |  | ||||||
| DOMAIN=gitea.example.com | DOMAIN=gitea.example.com | ||||||
| LETS_ENCRYPT_ENV=production | LETS_ENCRYPT_ENV=production | ||||||
| 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_DOMAIN=git.example.com | ||||||
| GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION=true | GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION=true | ||||||
| @ -17,8 +11,6 @@ GITEA_DISABLE_REGISTRATION=false | |||||||
| GITEA_ENABLE_NOTIFY_MAIL=true | GITEA_ENABLE_NOTIFY_MAIL=true | ||||||
| GITEA_ENABLE_OPENID_SIGNIN=true | GITEA_ENABLE_OPENID_SIGNIN=true | ||||||
| GITEA_ENABLE_OPENID_SIGNUP=true | GITEA_ENABLE_OPENID_SIGNUP=true | ||||||
| GITEA_DISABLE_GRAVATAR=false |  | ||||||
| GITEA_ENABLE_FEDERATED_AVATAR=true |  | ||||||
|  |  | ||||||
| GITEA_MAILER_FROM=noreply@example.com | GITEA_MAILER_FROM=noreply@example.com | ||||||
| GITEA_MAILER_USER=noreply@example.com | GITEA_MAILER_USER=noreply@example.com | ||||||
| @ -32,16 +24,11 @@ SECRET_DB_ROOT_PASSWORD_VERSION=v1 | |||||||
| SECRET_JWT_SECRET_VERSION=v1 # length=43 | SECRET_JWT_SECRET_VERSION=v1 # length=43 | ||||||
| SECRET_SECRET_KEY_VERSION=v1 # length=64 | SECRET_SECRET_KEY_VERSION=v1 # length=64 | ||||||
|  |  | ||||||
|  | GITEA_CORS_ENABLED=0 | ||||||
|  | # GITEA_CORS_DOMAIN=https://example.org | ||||||
|  |  | ||||||
| # SMTP Mailer | # SMTP Mailer | ||||||
| # COMPOSE_FILE="$COMPOSE_FILE:compose.smtp.yml" | # COMPOSE_FILE="compose.yml:compose.smtp.yml" | ||||||
| # GITEA_SMTP_MAILER_ENABLED=1 | # GITEA_SMTP_MAILER_ENABLED=1 | ||||||
| # GITEA_MAILER_HOST=mail.gandi.net:465 | # GITEA_MAILER_HOST=mail.gandi.net:465 | ||||||
| # SECRET_SMTP_PASSWORD_VERSION=v1 | # SECRET_SMTP_PASSWORD_VERSION=v1 | ||||||
|  |  | ||||||
| # OATH2 Options |  | ||||||
| # GITEA_REGISTER_EMAIL_CONFIRM=replace-me |  | ||||||
| # GITEA_REGISTER_EMAIL_CONFIRM=replace-me |  | ||||||
| # GITEA_OAUTH2_USERNAME=replace-me |  | ||||||
| # GITEA_UPDATE_AVATAR=replace-me |  | ||||||
| # GITEA_ACCOUNT_LINKING=replace-me |  | ||||||
| # GITEA_OAUTH2_CLIENT_ENABLED=replace-me |  | ||||||
|  | |||||||
							
								
								
									
										57
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										57
									
								
								README.md
									
									
									
									
									
								
							| @ -1,16 +1,16 @@ | |||||||
| # Gitea | # Gitea | ||||||
|  |  | ||||||
| [](https://build.coopcloud.tech/coop-cloud/gitea) | [](https://drone.coopcloud.tech/coop-cloud/gitea) | ||||||
|  |  | ||||||
| <!-- metadata --> | <!-- metadata --> | ||||||
| * **Category**: Development | - **Category**: Development | ||||||
| * **Status**: 3, stable | * **Status**: ❶💚 | ||||||
| * **Image**: [`gitea/gitea`](https://hub.docker.com/gitea/gitea), 4, upstream | - **Image**: [`gitea/gitea`](https://hub.docker.com/gitea/gitea), ❶💚, upstream | ||||||
| * **Healthcheck**: Yes | - **Healthcheck**: Yes | ||||||
| * **Backups**: Yes | * **Backups**: Yes | ||||||
| * **Email**: ? | - **Email**: ? | ||||||
| * **Tests**: 2 | - **Tests**: ❷💛 | ||||||
| * **SSO**: 3 (OAuth) | - **SSO**: ❶💚 (OAuth) | ||||||
| <!-- endmetadata --> | <!-- endmetadata --> | ||||||
|  |  | ||||||
| ## Basic usage | ## Basic usage | ||||||
| @ -19,43 +19,6 @@ | |||||||
| 2. Deploy [`coop-cloud/traefik`][cc-traefik] | 2. Deploy [`coop-cloud/traefik`][cc-traefik] | ||||||
| 3. `abra app new gitea --secrets` (optionally with `--pass` if you'd like | 3. `abra app new gitea --secrets` (optionally with `--pass` if you'd like | ||||||
|    to save secrets in `pass`) |    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 |    your Docker swarm box | ||||||
| 5. `abra app deploy YOURAPPDOMAIN` | 5. `abra app YOURAPPDOMAIN deploy` | ||||||
|  |  | ||||||
| ## Create first user |  | ||||||
|  |  | ||||||
| Run |  | ||||||
|  |  | ||||||
| ```bash |  | ||||||
| abra app run YOURAPPNAME app gitea -c /etc/gitea/app.ini admin user create --username USERNAME --admin --random-password --email EMAIL |  | ||||||
| ``` |  | ||||||
|  |  | ||||||
| See the [Gitea command-line documentation](https://docs.gitea.io/en-us/command-line/) for more options.  Make sure not to forget the `-c /etc/gitea/app.ini`. |  | ||||||
|  |  | ||||||
| ## Enable SSH |  | ||||||
|  |  | ||||||
| You most certainly want to be able to access your repository over SSH.  To do so, make sure you uncomment the right lines in the configuration for `traefik`. |  | ||||||
| ``` |  | ||||||
| abra app config YOURTRAEFIKAPP |  | ||||||
| ``` |  | ||||||
| There uncomment or add these lines: |  | ||||||
| ``` |  | ||||||
| GITEA_SSH_ENABLED=1 |  | ||||||
| COMPOSE_FILE="compose.yml:compose.gitea.yml" |  | ||||||
| ``` |  | ||||||
| Then redeploy traefik: |  | ||||||
| ``` |  | ||||||
| abra app undeploy YOURTRAEFIKAPP |  | ||||||
| abra app deploy YOURTRAEFIKAPP |  | ||||||
| ``` |  | ||||||
| You might need to wait a bit.  To check if it worked, you can run |  | ||||||
| ``` |  | ||||||
| telnet my.gitea.example.com 2222 |  | ||||||
| ``` |  | ||||||
| Once you have added a public SSH key, you can check that you can connect to your gitea server with |  | ||||||
| ``` |  | ||||||
| ssh -T -p 2222 git@my.gitea.example.com |  | ||||||
| ``` |  | ||||||
|  |  | ||||||
| Note that gitea should be configured to listen to port 2222, i.e. `GITEA_SSH_PORT=2222` in the gitea config. |  | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								abra.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								abra.sh
									
									
									
									
									
								
							| @ -1,4 +1,4 @@ | |||||||
| export APP_INI_VERSION=v9 | export APP_INI_VERSION=v8 | ||||||
| export DOCKER_SETUP_SH_VERSION=v1 | export DOCKER_SETUP_SH_VERSION=v1 | ||||||
|  |  | ||||||
| abra_backup_app() { | abra_backup_app() { | ||||||
|  | |||||||
							
								
								
									
										32
									
								
								app.ini.tmpl
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								app.ini.tmpl
									
									
									
									
									
								
							| @ -7,10 +7,6 @@ NAME = {{ env "GITEA_DB_NAME" }} | |||||||
| PASSWD = {{ secret "db_password" }} | PASSWD = {{ secret "db_password" }} | ||||||
| USER = {{ env "GITEA_DB_USER" }} | USER = {{ env "GITEA_DB_USER" }} | ||||||
|  |  | ||||||
| [picture] |  | ||||||
| DISABLE_GRAVATAR = {{ env "GITEA_DISABLE_GRAVATAR" }} |  | ||||||
| ENABLE_FEDERATED_AVATAR = {{ env "GITEA_ENABLE_FEDERATED_AVATAR" }} |  | ||||||
|  |  | ||||||
| [service] | [service] | ||||||
| ALLOW_ONLY_EXTERNAL_REGISTRATION = {{ env "GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION" }} | ALLOW_ONLY_EXTERNAL_REGISTRATION = {{ env "GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION" }} | ||||||
| AUTO_WATCH_NEW_REPOS = {{ env "GITEA_AUTO_WATCH_NEW_REPOS" }} | AUTO_WATCH_NEW_REPOS = {{ env "GITEA_AUTO_WATCH_NEW_REPOS" }} | ||||||
| @ -57,24 +53,22 @@ MAILER_TYPE    = smtp | |||||||
| IS_TLS_ENABLED = true | IS_TLS_ENABLED = true | ||||||
| {{ end }} | {{ end }} | ||||||
|  |  | ||||||
| {{ if eq (env "GITEA_OAUTH2_CLIENT_ENABLED") "1" }} |  | ||||||
| [oauth2_client] |  | ||||||
| REGISTER_EMAIL_CONFIRM = {{ env "GITEA_REGISTER_EMAIL_CONFIRM" }} |  | ||||||
| ENABLE_AUTO_REGISTRATION = {{ env "GITEA_ENABLE_AUTO_REGISTRATION" }} |  | ||||||
| USERNAME = {{ env "GITEA_OAUTH2_USERNAME" }} |  | ||||||
| UPDATE_AVATAR = {{ env "GITEA_UPDATE_AVATAR" }} |  | ||||||
| ACCOUNT_LINKING = {{ env "GITEA_ACCOUNT_LINKING" }} |  | ||||||
| {{ end }} |  | ||||||
|  |  | ||||||
| [markup.restructuredtext] | [markup.restructuredtext] | ||||||
| ENABLED         = true | ENABLED         = true | ||||||
| FILE_EXTENSIONS = .rst | FILE_EXTENSIONS = .rst | ||||||
| RENDER_COMMAND  = rst2html | RENDER_COMMAND  = rst2html | ||||||
| IS_INPUT_FILE   = false | IS_INPUT_FILE   = false | ||||||
|  |  | ||||||
| [log] | [picture] | ||||||
| MODE=console | AVATAR_UPLOAD_PATH = /data/gitea/avatars | ||||||
| LEVEL=WARN | REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars | ||||||
| STACKTRACE_LEVEL=None |  | ||||||
| ENABLE_ACCESS_LOG=false | [attachment] | ||||||
| ENABLE_XORM_LOG=false | PATH = /data/gitea/attachments | ||||||
|  |  | ||||||
|  | {{ if eq (env "GITEA_CORS_ENABLED") "1" }} | ||||||
|  | [cors] | ||||||
|  | ENABLED=true | ||||||
|  | SCHEME=https | ||||||
|  | ALLOW_DOMAIN={{ env "GITEA_CORS_DOMAIN" }} | ||||||
|  | {{ end }} | ||||||
|  | |||||||
| @ -1,5 +0,0 @@ | |||||||
| version: '3.8' |  | ||||||
|  |  | ||||||
| services: |  | ||||||
|   app: |  | ||||||
|     image: codeberg.org/forgejo/forgejo:1.19.3-0-rootless |  | ||||||
| @ -1,37 +0,0 @@ | |||||||
| version: '3.8' |  | ||||||
|  |  | ||||||
| services: |  | ||||||
|   app: |  | ||||||
|     environment: |  | ||||||
|       - GITEA_DB_TYPE=mysql |  | ||||||
|       - GITEA_DB_HOST="db:3306" |  | ||||||
|       - GITEA_DB_NAME=gitea |  | ||||||
|       - GITEA_DB_USER=gitea |  | ||||||
|   db: |  | ||||||
|     image: "mariadb:10.11.2" |  | ||||||
|     command: | |  | ||||||
|       mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci |  | ||||||
|     environment: |  | ||||||
|       - MYSQL_DATABASE=gitea |  | ||||||
|       - MYSQL_USER=gitea |  | ||||||
|       - MYSQL_PASSWORD_FILE=/run/secrets/db_password |  | ||||||
|       - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db_root_password |  | ||||||
|     secrets: |  | ||||||
|       - db_password |  | ||||||
|       - db_root_password |  | ||||||
|     volumes: |  | ||||||
|       - "mariadb:/var/lib/mysql" |  | ||||||
|     networks: |  | ||||||
|       - internal |  | ||||||
|  |  | ||||||
| secrets: |  | ||||||
|   db_password: |  | ||||||
|     name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION} |  | ||||||
|     external: true |  | ||||||
|   db_root_password: |  | ||||||
|     name: ${STACK_NAME}_db_root_password_${SECRET_DB_ROOT_PASSWORD_VERSION} |  | ||||||
|     external: true |  | ||||||
|  |  | ||||||
| volumes: |  | ||||||
|   mariadb: |  | ||||||
|   internal: |  | ||||||
| @ -1,30 +0,0 @@ | |||||||
| version: '3.8' |  | ||||||
|  |  | ||||||
| services: |  | ||||||
|   app: |  | ||||||
|     environment: |  | ||||||
|       - GITEA_DB_TYPE=postgres |  | ||||||
|       - GITEA_DB_HOST="db:5432" |  | ||||||
|       - GITEA_DB_NAME=gitea |  | ||||||
|       - GITEA_DB_USER=gitea |  | ||||||
|   db: |  | ||||||
|     image: postgres:15.3 |  | ||||||
|     environment:  |  | ||||||
|       - POSTGRES_DB=gitea |  | ||||||
|       - POSTGRES_USER=gitea |  | ||||||
|       - POSTGRES_PASSWORD_FILE=/run/secrets/db_password |  | ||||||
|     secrets: |  | ||||||
|       - db_password |  | ||||||
|     volumes: |  | ||||||
|       - db:/var/lib/postgresql/data |  | ||||||
|     networks: |  | ||||||
|       - internal |  | ||||||
|  |  | ||||||
| secrets: |  | ||||||
|   db_password: |  | ||||||
|     name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION} |  | ||||||
|     external: true |  | ||||||
|  |  | ||||||
| volumes: |  | ||||||
|   db: |  | ||||||
|   internal: |  | ||||||
							
								
								
									
										47
									
								
								compose.yml
									
									
									
									
									
								
							
							
						
						
									
										47
									
								
								compose.yml
									
									
									
									
									
								
							| @ -3,7 +3,7 @@ version: "3.8" | |||||||
|  |  | ||||||
| services: | services: | ||||||
|   app: |   app: | ||||||
|     image: "gitea/gitea:1.20.1-rootless" |     image: "gitea/gitea:1.15.6-rootless" | ||||||
|     configs: |     configs: | ||||||
|       - source: app_ini |       - source: app_ini | ||||||
|         target: /etc/gitea/app.ini |         target: /etc/gitea/app.ini | ||||||
| @ -19,6 +19,10 @@ services: | |||||||
|       - GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION |       - GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION | ||||||
|       - GITEA_APP_NAME |       - GITEA_APP_NAME | ||||||
|       - GITEA_AUTO_WATCH_NEW_REPOS |       - GITEA_AUTO_WATCH_NEW_REPOS | ||||||
|  |       - GITEA_DB_HOST="db:3306" | ||||||
|  |       - GITEA_DB_NAME=gitea | ||||||
|  |       - GITEA_DB_TYPE=mysql | ||||||
|  |       - GITEA_DB_USER=gitea | ||||||
|       - GITEA_DISABLE_REGISTRATION |       - GITEA_DISABLE_REGISTRATION | ||||||
|       - GITEA_DOMAIN=${DOMAIN} |       - GITEA_DOMAIN=${DOMAIN} | ||||||
|       - GITEA_ENABLE_NOTIFY_MAIL |       - GITEA_ENABLE_NOTIFY_MAIL | ||||||
| @ -26,15 +30,8 @@ services: | |||||||
|       - GITEA_ENABLE_OPENID_SIGNUP |       - GITEA_ENABLE_OPENID_SIGNUP | ||||||
|       - GITEA_SMTP_MAILER_ENABLED |       - GITEA_SMTP_MAILER_ENABLED | ||||||
|       - GITEA_SSH_PORT |       - GITEA_SSH_PORT | ||||||
|       - GITEA_DISABLE_GRAVATAR |       - GITEA_CORS_ENABLED | ||||||
|       - GITEA_ENABLE_FEDERATED_AVATAR |       - GITEA_CORS_DOMAIN | ||||||
|       - GITEA_REGISTER_EMAIL_CONFIRM |  | ||||||
|       - GITEA_ENABLE_AUTO_REGISTRATION |  | ||||||
|       - GITEA_OAUTH2_USERNAME |  | ||||||
|       - GITEA_UPDATE_AVATAR |  | ||||||
|       - GITEA_ACCOUNT_LINKING |  | ||||||
|       - GITEA_OAUTH2_CLIENT_ENABLED |  | ||||||
|       - GITEA_CORS_ALLOW_DOMAIN |  | ||||||
|     volumes: |     volumes: | ||||||
|       - data:/var/lib/gitea |       - data:/var/lib/gitea | ||||||
|       - config:/etc/gitea |       - config:/etc/gitea | ||||||
| @ -56,13 +53,24 @@ services: | |||||||
|         - "traefik.tcp.routers.${STACK_NAME}-ssh.rule=HostSNI(`*`)" |         - "traefik.tcp.routers.${STACK_NAME}-ssh.rule=HostSNI(`*`)" | ||||||
|         - "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh" |         - "traefik.tcp.routers.${STACK_NAME}-ssh.entrypoints=gitea-ssh" | ||||||
|         - "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}" |         - "traefik.tcp.services.${STACK_NAME}-ssh.loadbalancer.server.port=${GITEA_SSH_PORT}" | ||||||
|         - "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}_cors" |         - coop-cloud.${STACK_NAME}.version=1.1.2+1.15.6-rootless | ||||||
|         - "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.3.0+1.20.1-rootless |  | ||||||
|  |  | ||||||
|  |   db: | ||||||
|  |     image: "mariadb:10.6" | ||||||
|  |     command: | | ||||||
|  |       mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci | ||||||
|  |     environment: | ||||||
|  |       - MYSQL_DATABASE=gitea | ||||||
|  |       - MYSQL_USER=gitea | ||||||
|  |       - MYSQL_PASSWORD_FILE=/run/secrets/db_password | ||||||
|  |       - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db_root_password | ||||||
|  |     secrets: | ||||||
|  |       - db_password | ||||||
|  |       - db_root_password | ||||||
|  |     volumes: | ||||||
|  |       - "mariadb:/var/lib/mysql" | ||||||
|  |     networks: | ||||||
|  |       - internal | ||||||
|  |  | ||||||
| networks: | networks: | ||||||
|   internal: |   internal: | ||||||
| @ -80,6 +88,12 @@ configs: | |||||||
|     template_driver: golang |     template_driver: golang | ||||||
|  |  | ||||||
| secrets: | secrets: | ||||||
|  |   db_password: | ||||||
|  |     name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION} | ||||||
|  |     external: true | ||||||
|  |   db_root_password: | ||||||
|  |     name: ${STACK_NAME}_db_root_password_${SECRET_DB_ROOT_PASSWORD_VERSION} | ||||||
|  |     external: true | ||||||
|   internal_token: |   internal_token: | ||||||
|     name: ${STACK_NAME}_internal_token_${SECRET_INTERNAL_TOKEN_VERSION} |     name: ${STACK_NAME}_internal_token_${SECRET_INTERNAL_TOKEN_VERSION} | ||||||
|     external: true |     external: true | ||||||
| @ -93,3 +107,4 @@ secrets: | |||||||
| volumes: | volumes: | ||||||
|   data: |   data: | ||||||
|   config: |   config: | ||||||
|  |   mariadb: | ||||||
|  | |||||||
| @ -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