automation/wordpress/templates/docker-compose.yml.j2
2020-01-28 01:24:25 +01:00

26 lines
625 B
Django/Jinja

version: '3'
# Generated by ansible for site {{ site_url }}
# At {{ subnet_site_ip }} on {{ subnet_cidr_address }}
services:
wp:
image: {{ docker_image }}
restart: always
environment:
WORDPRESS_DB_HOST: "{{ subnet_gateway_ip }}"
WORDPRESS_DB_USER: "{{ mysql_username }}"
WORDPRESS_DB_PASSWORD: "{{ mysql_password }}"
WORDPRESS_DB_NAME: "{{ mysql_database }}"
volumes: {{ docker_volumes | to_yaml }}
networks:
net:
ipv4_address: "{{ subnet_site_ip }}"
networks:
net:
ipam:
driver: default
config:
- subnet: "{{ subnet_cidr_address }}"