automation/deployer/roles/build/templates/drupal/docker-compose.yml.j2

29 lines
801 B
Text
Raw Normal View History

2020-04-28 09:59:52 +00:00
version: '3'
# Generated by ansible for site {{ item.url }}
# At {{ item.subnet_site_ip }} on {{ item.subnet_cidr_address }}
services:
drupal:
build: .
restart: always
volumes:
# Unneeded because all modules/profiles are either core or in sites/
# - /var/www/html/modules
# - /var/www/html/profiles
# - /var/www/html/sites
# We want a host volume for the themes directory to easily work on theming
- "{{ www_path }}/{{ item.slug }}/themes:/var/www/html/themes"
- "{{ www_path }}/{{ item.slug }}/sites:/var/www/html/sites"
# Fix the container's IP
networks:
net:
ipv4_address: "{{ item.subnet_site_ip }}"
networks:
net:
ipam:
driver: default
config:
- subnet: "{{ item.subnet_cidr_address }}"