S3 Data Storage (#1)
Using the storage options [here](https://docs.gitea.com/administration/config-cheat-sheet#storage-storage), this commit pushes all packages, avatars, and LFS files to S3. - Uses AWS S3. - Frees up storage on EC2 instance, so packages do not eventually steal all of the free space. Reviewed-on: #1 Co-authored-by: Max <git@maximhutz.me> Co-committed-by: Max <git@maximhutz.me>
This commit is contained in:
@@ -3,8 +3,10 @@ services:
|
||||
# Gitea itself.
|
||||
gitea:
|
||||
container_name: web-git-instance
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- backup
|
||||
- bucket-script
|
||||
build:
|
||||
context: gitea
|
||||
dockerfile: Dockerfile.dev
|
||||
@@ -31,7 +33,7 @@ services:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
environment:
|
||||
AWS_ENDPOINT: localstack:4566
|
||||
AWS_S3_BUCKET_NAME: test
|
||||
AWS_S3_BUCKET_NAME: backup
|
||||
AWS_ACCESS_KEY_ID: _
|
||||
AWS_SECRET_ACCESS_KEY: _
|
||||
BACKUP_CRON_EXPRESSION: "* * * * *"
|
||||
@@ -59,7 +61,11 @@ services:
|
||||
AWS_ACCESS_KEY_ID: _
|
||||
AWS_SECRET_ACCESS_KEY: _
|
||||
AWS_ENDPOINT_URL: http://localstack:4566
|
||||
command: '"aws s3api create-bucket --bucket test"'
|
||||
command: |
|
||||
"
|
||||
aws s3api create-bucket --bucket backup
|
||||
aws s3api create-bucket --bucket storage
|
||||
"
|
||||
|
||||
volumes:
|
||||
data:
|
||||
|
||||
Reference in New Issue
Block a user