moved wordpress build templates in subdir (tested in dummy project, should work)
This commit is contained in:
parent
db583c2f71
commit
7723d92a28
6 changed files with 4 additions and 21 deletions
|
@ -1,10 +0,0 @@
|
||||||
FROM wordpress:apache
|
|
||||||
|
|
||||||
RUN apt-get update; \
|
|
||||||
apt-get install -y --no-install-recommends msmtp; \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
RUN echo "sendmail_path = /usr/sbin/msmtp -t " > /usr/local/etc/php/conf.d/sendmail.ini
|
|
||||||
|
|
||||||
COPY ./msmtprc /etc/msmtprc
|
|
||||||
|
|
|
@ -6,17 +6,17 @@
|
||||||
|
|
||||||
- name: Render sexy Dockerfile
|
- name: Render sexy Dockerfile
|
||||||
template:
|
template:
|
||||||
src: Dockerfile.j2
|
src: wordpress/Dockerfile.j2
|
||||||
dest: "{{ sites_path }}/{{ item.slug }}/Dockerfile"
|
dest: "{{ sites_path }}/{{ item.slug }}/Dockerfile"
|
||||||
|
|
||||||
- name: Render marvelous docker-compose.yml
|
- name: Render marvelous docker-compose.yml
|
||||||
template:
|
template:
|
||||||
src: docker-compose.yml.j2
|
src: wordpress/docker-compose.yml.j2
|
||||||
dest: "{{ sites_path }}/{{ item.slug }}/docker-compose.yml"
|
dest: "{{ sites_path }}/{{ item.slug }}/docker-compose.yml"
|
||||||
|
|
||||||
- name: Render swell nginx site config
|
- name: Render swell nginx site config
|
||||||
template:
|
template:
|
||||||
src: nginx-wordpress.j2
|
src: wordpress/nginx.j2
|
||||||
dest: "/etc/nginx/sites-available/{{ item.url }}"
|
dest: "/etc/nginx/sites-available/{{ item.url }}"
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
defaults
|
|
||||||
|
|
||||||
account default
|
|
||||||
host {{ host_ip }}
|
|
||||||
post 25
|
|
||||||
|
|
||||||
|
|
|
@ -16,4 +16,4 @@ RUN echo "\
|
||||||
account default\n\
|
account default\n\
|
||||||
host {{ item.subnet_gateway_ip }}\n\
|
host {{ item.subnet_gateway_ip }}\n\
|
||||||
port 25\n\
|
port 25\n\
|
||||||
from php@{{ item.url }}" > /etc/msmtprc
|
from php@{{ item.url }}\n" > /etc/msmtprc
|
Loading…
Reference in a new issue