feat: Add minio

This commit is contained in:
Lino Silva
2023-04-22 13:14:09 +01:00
parent 71b0366977
commit de7f1d8b87
12 changed files with 203 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
---
- name: Create directory for docker-compose
ansible.builtin.file:
path: /root/docker/
state: directory
mode: "0755"
- name: Copy docker-compose file
template:
src: "docker-compose.yml"
dest: /root/docker/docker-compose.yml
owner: root
group: root
mode: 0755
- name: Run docker-compose
ansible.builtin.shell:
args:
cmd: docker compose up -d
chdir: /root/docker/
@@ -0,0 +1,23 @@
version: '3.7'
services:
minio:
container_name: minio
image: quay.io/minio/minio:RELEASE.2022-06-03T01-40-53Z
command: server --console-address ":80" /data
environment:
MINIO_ROOT_USER: {{ minio_root_user }}
MINIO_ROOT_PASSWORD: {{ minio_root_pwd }}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
hostname: minio
restart: always
ports:
- 9000:9000
- 9090:9090
- 80:80
volumes:
- /data/minio:/data