Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 29f8ad5

Browse files
committed
Issue #1206: Testing some docker-compose bits.
1 parent 4539d8e commit 29f8ad5

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ vagrant_ansible_inventory_default
1717
# Drupal VM specific files.
1818
local.config.yml
1919
config.yml
20+
docker-compose.yml
2021
drupal.make.yml
2122
Vagrantfile.local
2223
examples/prod/inventory

example.docker-compose.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: "3"
2+
3+
services:
4+
5+
drupal-vm:
6+
image: drupal-vm
7+
container_name: drupal-vm
8+
ports:
9+
- 8080:80
10+
- 8443:443
11+
privileged: true
12+
volumes:
13+
- ./:/var/www/drupalvm/:rw,cached
14+
command: /lib/systemd/systemd
15+
networks:
16+
drupalvm:
17+
ipv4_address: 192.168.88.88
18+
19+
networks:
20+
21+
drupalvm:
22+
driver: bridge
23+
driver_opts:
24+
ip: 192.168.88.1
25+
ipam:
26+
config:
27+
- subnet: "192.168.88.0/16"

provisioning/docker/bake.sh

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/bin/bash
2+
#
3+
# Bake a Docker container with Drupal VM.
4+
5+
# Exit on any individual command failure.
6+
set -e
27

38
# Set variables.
49
DRUPALVM_MACHINE_NAME="${DRUPALVM_MACHINE_NAME:-drupal-vm}"

0 commit comments

Comments
 (0)