moved wordpress build templates in subdir (tested in dummy project, should work)

This commit is contained in:
Adrien Luxey 2020-04-27 12:23:53 +02:00
parent db583c2f71
commit 7723d92a28
6 changed files with 4 additions and 21 deletions

View file

@ -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

View file

@ -6,17 +6,17 @@
- name: Render sexy Dockerfile
template:
src: Dockerfile.j2
src: wordpress/Dockerfile.j2
dest: "{{ sites_path }}/{{ item.slug }}/Dockerfile"
- name: Render marvelous docker-compose.yml
template:
src: docker-compose.yml.j2
src: wordpress/docker-compose.yml.j2
dest: "{{ sites_path }}/{{ item.slug }}/docker-compose.yml"
- name: Render swell nginx site config
template:
src: nginx-wordpress.j2
src: wordpress/nginx.j2
dest: "/etc/nginx/sites-available/{{ item.url }}"
become: yes

View file

@ -1,7 +0,0 @@
defaults
account default
host {{ host_ip }}
post 25

View file

@ -16,4 +16,4 @@ RUN echo "\
account default\n\
host {{ item.subnet_gateway_ip }}\n\
port 25\n\
from php@{{ item.url }}" > /etc/msmtprc
from php@{{ item.url }}\n" > /etc/msmtprc