-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (47 loc) · 1.57 KB
/
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
---
# This file is used by developers who use ./scripts/deploy.sh to set up a local
# development environment to help with development this module.
version: '3'
services:
drupal:
image: dummy_image_required
volumes:
- ".:/var/www/html/modules/custom/eventbrite_one_way_sync"
working_dir: /var/www/html
webserver:
build:
context: .
dockerfile: Dummy_Dockerfile_required
ports:
- "80"
links:
# This seems to be required as per
# https://stackoverflow.com/a/48722140/1207752, even though in most
# cases eschewing this is not a problem. Without this, the
# webserver container might not see the Drupal container for a
# split second when everything is being spun up, resulting in a fatal
# error and the webserver container to exit, and requiring a restart
# of the container.
- drupal
mysql:
image: mariadb
environment:
MYSQL_DATABASE: drupal
MYSQL_ROOT_PASSWORD: drupal
MYSQL_ALLOW_EMPTY_PASSWORD: 'no'
dummy_server:
build:
context: .
dockerfile: ./scripts/lib/dummy-eventbrite-server/Dockerfile
ports:
- "80"
volumes:
- "./scripts/lib/dummy-eventbrite-server/www:/var/www/html/"
- "./scripts/lib/dummy-eventbrite-server/mod_rewrite.conf:/etc/apache2/sites-enabled/mod_rewrite.conf"
# Specifying the network name makes it predictable on all environments,
# for example when we run browser tests.
# See https://github.com/docker/compose/issues/3736.
networks:
default:
external:
name: eventbrite_one_way_sync_default