diff --git a/docker-compose.yml.template b/docker-compose.yml.template index e7385d1..bab6873 100644 --- a/docker-compose.yml.template +++ b/docker-compose.yml.template @@ -46,6 +46,27 @@ services: - GITEA__storage__MINIO_INSECURE_SKIP_VERIFY=false - GITEA__storage__MINIO_USE_SSL=false - GITEA__storage__SERVE_DIRECT=true + # S3 storage for attachments + - GITEA__attachment__STORAGE_TYPE=minio + - GITEA__attachment__MINIO_ENDPOINT=s3storage:8333 + - GITEA__attachment__MINIO_ACCESS_KEY_ID=op://TerraphimPlatform/gitea-s3/access-key + - GITEA__attachment__MINIO_SECRET_ACCESS_KEY=op://TerraphimPlatform/gitea-s3/secret-key + - GITEA__attachment__MINIO_BUCKET=gitea + - GITEA__attachment__MINIO_USE_SSL=false + # S3 storage for avatars/pictures + - GITEA__picture__STORAGE_TYPE=minio + - GITEA__picture__MINIO_ENDPOINT=s3storage:8333 + - GITEA__picture__MINIO_ACCESS_KEY_ID=op://TerraphimPlatform/gitea-s3/access-key + - GITEA__picture__MINIO_SECRET_ACCESS_KEY=op://TerraphimPlatform/gitea-s3/secret-key + - GITEA__picture__MINIO_BUCKET=gitea + - GITEA__picture__MINIO_USE_SSL=false + # S3 storage for LFS + - GITEA__lfs__STORAGE_TYPE=minio + - GITEA__lfs__MINIO_ENDPOINT=s3storage:8333 + - GITEA__lfs__MINIO_ACCESS_KEY_ID=op://TerraphimPlatform/gitea-s3/access-key + - GITEA__lfs__MINIO_SECRET_ACCESS_KEY=op://TerraphimPlatform/gitea-s3/secret-key + - GITEA__lfs__MINIO_BUCKET=gitea-lfs + - GITEA__lfs__MINIO_USE_SSL=false restart: always networks: - gitea