Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
kdpuvvadi committed Jul 4, 2023
1 parent 86e0603 commit e4deac7
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 46 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
92 changes: 46 additions & 46 deletions tasks/proxy-mysql.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
---
- name: Create a network for proxy manager
community.docker.docker_network:
name: "{{ network }}"

- name: Deploy mysql/mariadb
community.docker.docker_container:
name: "{{ mysql_host }}"
image: jc21/mariadb-aria:latest
ports:
- "3306:3306"
volumes:
- "/data/mysql:/var/lib/mysql"
env:
MYSQL_ROOT_PASSWORD: "{{ mysql_root_password }}"
MYSQL_DATABASE: "{{ mysql_database }}"
MYSQL_USER: "{{ mysql_database }}"
MYSQL_PASSWORD: "{{ mysql_password }}"
restart_policy: unless-stopped
networks:
- name: "{{ network }}"
container_default_behavior: compatibility
network_mode: "{{ network }}"


- name: Nginx Proxy Manager deploy
community.docker.docker_container:
name: nginx_proxy
image: jc21/nginx-proxy-manager:latest
ports:
- "80:80"
- "81:81"
- "443:443"
volumes:
- "/data:/data"
- "/letsencrypt:/etc/letsencrypt"
env:
DB_MYSQL_HOST: "{{ mysql_host }}"
DB_MYSQL_PORT: "3306"
DB_MYSQL_USER: "{{ mysql_user }}"
DB_MYSQL_PASSWORD: "{{ mysql_password }}"
DB_MYSQL_NAME: "{{ mysql_database }}"
restart_policy: unless-stopped
networks:
- name: "{{ network }}"
network_mode: "{{ network }}"
---
- name: Create a network for proxy manager
community.docker.docker_network:
name: "{{ network }}"

- name: Deploy mysql/mariadb
community.docker.docker_container:
name: "{{ mysql_host }}"
image: jc21/mariadb-aria:latest
ports:
- "3306:3306"
volumes:
- "/data/mysql:/var/lib/mysql"
env:
MYSQL_ROOT_PASSWORD: "{{ mysql_root_password }}"
MYSQL_DATABASE: "{{ mysql_database }}"
MYSQL_USER: "{{ mysql_database }}"
MYSQL_PASSWORD: "{{ mysql_password }}"
restart_policy: unless-stopped
networks:
- name: "{{ network }}"
container_default_behavior: compatibility
network_mode: "{{ network }}"


- name: Nginx Proxy Manager deploy
community.docker.docker_container:
name: nginx_proxy
image: jc21/nginx-proxy-manager:latest
ports:
- "80:80"
- "81:81"
- "443:443"
volumes:
- "/data:/data"
- "/letsencrypt:/etc/letsencrypt"
env:
DB_MYSQL_HOST: "{{ mysql_host }}"
DB_MYSQL_PORT: "3306"
DB_MYSQL_USER: "{{ mysql_user }}"
DB_MYSQL_PASSWORD: "{{ mysql_password }}"
DB_MYSQL_NAME: "{{ mysql_database }}"
restart_policy: unless-stopped
networks:
- name: "{{ network }}"
network_mode: "{{ network }}"

0 comments on commit e4deac7

Please sign in to comment.