2020-03-31 16:32:13 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
# Generated by ansible for site {{ item.url }}
|
|
|
|
# At {{ item.subnet_site_ip }} on {{ item.subnet_cidr_address }}
|
|
|
|
|
|
|
|
services:
|
|
|
|
wp:
|
|
|
|
build: .
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
WORDPRESS_DB_HOST: "{{ item.subnet_gateway_ip }}"
|
|
|
|
WORDPRESS_DB_USER: "{{ item.mysql_username }}"
|
|
|
|
WORDPRESS_DB_PASSWORD: "{{ item.mysql_password }}"
|
|
|
|
WORDPRESS_DB_NAME: "{{ item.mysql_database }}"
|
2020-04-09 15:29:12 +00:00
|
|
|
volumes:
|
|
|
|
- "{{ www_path }}/{{ item.slug }}_wp-content:/var/www/html/wp-content"
|
2020-03-31 16:32:13 +00:00
|
|
|
networks:
|
|
|
|
net:
|
|
|
|
ipv4_address: "{{ item.subnet_site_ip }}"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
net:
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: "{{ item.subnet_cidr_address }}"
|