1
0
Fork 0

Use 1.16.8 and use env vars for gitea config

This commit is contained in:
🎷🐢 S. P. O. Clayton 2022-06-20 13:54:54 -04:00
parent 805237c8a0
commit a9e4f51e1c
Signed by: sean
SSH Key Fingerprint: SHA256:zkuPrRvkEDiQQv1Y5yScWa6I4zhj+eiv7XnP8pxIxVU
2 changed files with 20 additions and 4 deletions

View File

@ -45,7 +45,7 @@
- name: Build Gitea image
docker_image:
name: gitea_with_asciidoc
name: gitea
source: build
build:
path: "./gitea"
@ -54,8 +54,8 @@
docker_container:
name: "{{ stack_prefix_name }}gitea"
recreate: true
restart_policy: unless-stopped
image: gitea/gitea:1.16.8
restart_policy: always
image: gitea
published_ports:
- "3000:3000"
env:
@ -83,11 +83,27 @@
"GITEA__server__LFS_CONTENT_PATH": /app/gitea/data/lfs
"GITEA__server__LFS_JWT_SECRET": "{{ secret_gitea_lfs_jwt_secret }}"
"GITEA__server__OFFLINE_MODE": "false"
"GITEA__service__REGISTER_EMAIL_CONFIRM": "false"
"GITEA__service__ENABLE_NOTIFY_MAIL": "false"
"GITEA__service__DISABLE_REGISTRATION": "true"
"GITEA__service__ALLOW_ONLY_EXTERNAL_REGISTRATION": "false"
"GITEA__service__ENABLE_CAPTCHA": "false"
"GITEA__service__REQUIRE_SIGNIN_VIEW": "false"
"GITEA__service__DEFAULT_KEEP_EMAIL_PRIVATE": "true"
"GITEA__service__DEFAULT_ALLOW_CREATE_ORGANIZATION": "true"
"GITEA__service__DEFAULT_ENABLE_TIMETRACKING": "true"
"GITEA__service__NO_REPLY_ADDRESS": noreply.code.sean.wtf
"GITEA__picture__DISABLE_GRAVATAR": "false"
"GITEA__picture__ENABLE_FEDERATED_AVATAR": "true"
"GITEA__openid__ENABLE_OPENID_SIGNIN": "false"
"GITEA__openid__ENABLE_OPENID_SIGNUP": "false"
networks:
- name: "{{ stack_internal_network }}"
- name: "{{ stack_external_network }}"
# May need to open ssh ports for some things. Maybe not.
mounts:
- source: "{{ stack_prefix_name}}gitea_repositories"
target: /app/gitea/data/gitea-repositories
- source: "{{ stack_prefix_name }}gitea_data"
target: /data
- source: /etc/timezone

View File

@ -1,4 +1,4 @@
FROM gitea/gitea:1.17.0-rc1
FROM gitea/gitea:1.16.8
COPY app.ini /data/gitea/conf/app.ini