automation/deployer/roles/build/templates/drupal/docker-compose.yml.j2
2020-10-18 19:27:13 +02:00

29 lines
872 B
Django/Jinja

version: '3'
# Generated by ansible for site {{ site.url }}
# At {{ site.subnet_site_ip }} on {{ site.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 }}/{{ site.slug }}/themes:/var/www/html/themes"
- "{{ www_path }}/{{ site.slug }}/sites:/var/www/html/sites"
- "{{ www_path }}/{{ site.slug }}/modules:/var/www/html/modules"
# Fix the container's IP
networks:
net:
ipv4_address: "{{ site.subnet_site_ip }}"
networks:
net:
ipam:
driver: default
config:
- subnet: "{{ site.subnet_cidr_address }}"