28 lines
801 B
Django/Jinja
28 lines
801 B
Django/Jinja
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 }}"
|