Add minio to ansible
This commit is contained in:
parent
5f9747c378
commit
e006f44dd6
10 changed files with 53 additions and 53 deletions
7
_ansible/roles/minio/tasks/main.yml
Normal file
7
_ansible/roles/minio/tasks/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Deploy {{ svc.name }}
|
||||
tags:
|
||||
- minio
|
||||
- storage
|
||||
block:
|
||||
- import_tasks: deploy-common-service.yml
|
34
_ansible/roles/minio/vars/main.yml
Normal file
34
_ansible/roles/minio/vars/main.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
svc:
|
||||
domain: "s3.serguzim.me"
|
||||
name: minio
|
||||
port: 9000
|
||||
caddy_extra: |
|
||||
@nocache {
|
||||
query nocache=*
|
||||
}
|
||||
header @nocache "Cache-Control" "no-store, no-cache"
|
||||
extra_svcs:
|
||||
- domain: console.s3.serguzim.me
|
||||
docker_host: minio
|
||||
port: 9001
|
||||
|
||||
svc_env:
|
||||
MINIO_SERVER_URL: "https://{{ svc.domain }}/"
|
||||
MINIO_BROWSER_REDIRECT_URL: "https://console.{{ svc.domain }}"
|
||||
MINIO_VOLUMES: "/data"
|
||||
|
||||
MINIO_ROOT_USER: "{{ vault_minio.user }}"
|
||||
MINIO_ROOT_PASSWORD: "{{ vault_minio.pass }}"
|
||||
|
||||
compose:
|
||||
watchtower: true
|
||||
image: minio/minio
|
||||
env: true
|
||||
volumes:
|
||||
- data:/data
|
||||
file:
|
||||
services:
|
||||
app:
|
||||
command: server --console-address ":9001"
|
||||
volumes:
|
||||
data:
|
Reference in a new issue