agaric-coop/box/example.docker-compose.yml

51 lines
1.2 KiB
YAML
Raw Permalink Normal View History

version: "3"
services:
drupal-vm:
# If using a custom baked image, change the name below to your image's name.
image: geerlingguy/drupal-vm
# Comment out 'image' and uncomment the line below if customizing Drupal VM
# with a project-specific Dockerfile in the same directory as this file.
# build: .
# Set this to your project's machine name (e.g. example-com)
container_name: drupal-vm
ports:
- 80:80
- 443:443
- 3306:3306
- 8025:8025
# Not strictly required, but custom DNS settings can help with stability.
dns:
- '8.8.8.8'
- '8.8.4.4'
volumes:
- ./:/var/www/drupalvm/:rw,delegated
- /var/lib/mysql
privileged: true
command: /lib/systemd/systemd
networks:
drupalvm:
# Set this IP address to something different if you already have another
# service running on the default IP address. If you change the subnet,
# you need to also change the bridge network IP and subnet below.
ipv4_address: 192.168.89.89
networks:
# This custom network allows Drupal VM to be accessed on an IP address.
drupalvm:
driver: bridge
driver_opts:
ip: 192.168.89.1
ipam:
config:
- subnet: "192.168.89.0/16"