forked from geerlingguy/drupal-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.docker-compose.yml
52 lines (41 loc) · 1.29 KB
/
example.docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
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
- /sys/fs/cgroup:/sys/fs/cgroup:ro
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"