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

30 lines
872 B
Text
Raw Normal View History

2020-04-28 09:59:52 +00:00
version: '3'
# 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
- "{{ www_path }}/{{ site.slug }}/themes:/var/www/html/themes"
- "{{ www_path }}/{{ site.slug }}/sites:/var/www/html/sites"
2020-10-18 17:27:13 +00:00
- "{{ www_path }}/{{ site.slug }}/modules:/var/www/html/modules"
2020-04-28 09:59:52 +00:00
# Fix the container's IP
networks:
net:
ipv4_address: "{{ site.subnet_site_ip }}"
2020-04-28 09:59:52 +00:00
networks:
net:
ipam:
driver: default
config:
- subnet: "{{ site.subnet_cidr_address }}"