configure dell to use portainer api instead of docker compose
parent
f3c8366878
commit
160a0990f1
@ -0,0 +1,8 @@
|
||||
---
|
||||
minio_state: present
|
||||
minio_image: minio/minio
|
||||
minio_tag: RELEASE.2023-06-29T05-12-28Z
|
||||
minio_api_expose_port: 11000
|
||||
minio_console_expose_port: 11001
|
||||
minio_container_name: minio
|
||||
minio_portainer_stack_name: minio
|
||||
@ -0,0 +1,32 @@
|
||||
---
|
||||
- name: "Minio | Update Portainer."
|
||||
chatton.portainer.portainer_stack:
|
||||
username: '{{ portainer_user }}'
|
||||
password: '{{ portainer.password }}'
|
||||
base_url: '{{ portainer_base_url }}'
|
||||
stack_name: '{{ minio_portainer_stack_name }}'
|
||||
endpoint_id: '{{ portainer_endpoint }}'
|
||||
state: "{{ minio_state }}"
|
||||
definition:
|
||||
version: '3'
|
||||
services:
|
||||
minio:
|
||||
container_name: "{{ minio_container_name }}"
|
||||
image: "{{ minio_image }}:{{ minio_tag }}"
|
||||
ports:
|
||||
# The API
|
||||
- "{{ minio_api_expose_port }}:9000"
|
||||
# The web console
|
||||
- "{{ minio_console_expose_port }}:9001"
|
||||
volumes:
|
||||
- minio_storage:/data
|
||||
environment:
|
||||
# specified in the vault file
|
||||
MINIO_ROOT_USER: "{{ minio_username }}"
|
||||
MINIO_ROOT_PASSWORD: "{{ minio_password }}"
|
||||
MINIO_API_ROOT_ACCESS: "on"
|
||||
MINIO_BROWSER_REDIRECT_URL: "http://{{ ansible_default_ipv4.address }}:11000"
|
||||
|
||||
command: server --console-address ":9001" /data
|
||||
volumes:
|
||||
minio_storage: {}
|
||||
Loading…
Reference in New Issue