26 lines
625 B
Django/Jinja
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 }}"
|