2020-04-28 09:59:52 +00:00
|
|
|
version: '3'
|
|
|
|
|
2020-05-06 10:11:46 +00:00
|
|
|
# Generated by ansible for site {{ site.url }}
|
|
|
|
# At {{ site.subnet_site_ip }} on {{ site.subnet_cidr_address }}
|
2020-04-28 09:59:52 +00:00
|
|
|
|
|
|
|
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
|
2020-05-06 10:11:46 +00:00
|
|
|
- "{{ www_path }}/{{ site.slug }}/themes:/var/www/html/themes"
|
|
|
|
- "{{ www_path }}/{{ site.slug }}/sites:/var/www/html/sites"
|
2020-04-28 09:59:52 +00:00
|
|
|
# Fix the container's IP
|
|
|
|
networks:
|
|
|
|
net:
|
2020-05-06 10:11:46 +00:00
|
|
|
ipv4_address: "{{ site.subnet_site_ip }}"
|
2020-04-28 09:59:52 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
net:
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
2020-05-06 10:11:46 +00:00
|
|
|
- subnet: "{{ site.subnet_cidr_address }}"
|