-
Notifications
You must be signed in to change notification settings - Fork 2
/
rabbit_mq.yml
32 lines (31 loc) · 901 Bytes
/
rabbit_mq.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
- hosts: kartservice
gather_facts: false
vars:
_container_name: "{{ app_name }}"
tasks:
- name: "Create network"
become: true
community.docker.docker_network:
name: "{{ docker_network }}"
- name: "Deploy container"
become: true
community.docker.docker_container:
name: "{{ _container_name }}"
hostname: "{{ _container_name }}"
image: "rabbitmq:3-management"
state: "started"
restart_policy: "always"
ports:
- "15672:15672"
networks:
- name: "{{ docker_network }}"
aliases:
- "{{ _container_name }}"
log_driver: "json-file"
log_options:
max-size: "20m"
max-file: "3"
env:
RABBITMQ_DEFAULT_USER: "{{ rabbitmq_default_user }}"
RABBITMQ_DEFAULT_PASS: "{{ rabbitmq_default_password }}"