Skip to content
This repository was archived by the owner on Jun 21, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansible/roles/downloads/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
downloads_container: webhippie/caddy:latest
downloads_container: techknowlogick/caddy-s3browser:latest
downloads_domain: dl.gitea.io

minio_container: webhippie/minio:latest
Expand Down
13 changes: 9 additions & 4 deletions ansible/roles/downloads/templates/compose.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,26 @@ services:
image: ${DOWNLOADS_CONTAINER}
restart: always
environment:
- CADDY_WEBROOT=/var/lib/minio/releases
- S3_KEY=${MINIO_ACCESS}
- S3_SECRET=${MINIO_SECRET}
- S3_BUCKET=releases
- S3_ENDPOINT=storage.gitea.io
- S3_PROTO=https
- S3_HOST=storage.gitea.io
- S3_EXTRA=/releases/
networks:
- traefik
labels:
- traefik.docker.network=traefik_general
- traefik.port=8080
- traefik.port=80
- traefik.frontend.rule=Host:${DOWNLOADS_DOMAIN}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
test: ["CMD", "wget", "-O", "-", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
- server:/var/lib/minio

minio:
image: ${MINIO_CONTAINER}
Expand Down