automation/wordpress/templates/docker-compose.yml.j2

27 lines
625 B
Text
Raw Normal View History

2020-01-28 00:07:58 +00:00
version: '3'
2020-01-28 00:24:25 +00:00
# Generated by ansible for site {{ site_url }}
# At {{ subnet_site_ip }} on {{ subnet_cidr_address }}
2020-01-28 00:07:58 +00:00
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 }}"