-
Notifications
You must be signed in to change notification settings - Fork 12
/
db.yml
40 lines (37 loc) · 1.26 KB
/
db.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
33
34
35
36
37
38
39
40
#!/bin/bash
#
# Title: PGBlitz (Reference Title File)
# Author(s): Admin9705
# URL: https://pgblitz.com - http://github.pgblitz.com
# GNU: General Public License v3.0
################################################################################
---
- hosts: localhost
gather_facts: false
tasks:
# WP CORE (MANDATORY) #########################################################
- name: 'Including PG Press Core'
include_tasks: '/opt/pgpress/pgpresscore.yml'
- name: 'Set Known Facts'
set_fact:
pgrole: '{{wp_id.stdout}}'
# FACTS #######################################################################
- name: "Deploy wpdb-{{wp_id.stdout}} Database"
docker_container:
name: "wpdb-{{pgrole}}"
image: mariadb
pull: yes
expose: 3306
#published_ports:
# - "127.0.0.1:10{{wp_port.stdout}}:3306"
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/opt/appdata/wordpress/{{wp_id.stdout}}/{{wp_id.stdout}}-db:/var/lib/mysql"
env:
MYSQL_ROOT_PASSWORD: "mYsupERbigPas2WorD"
networks:
- name: plexguide
aliases:
- "wpdb-{{wp_id.stdout}}"
restart_policy: always
state: started