generated from ddev/ddev-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.backstop.yaml
35 lines (34 loc) · 1.14 KB
/
docker-compose.backstop.yaml
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
#ddev-generated
services:
# This is the service name used when running ddev commands accepting the
# --service flag.
backstop:
# This is the name of the container. It is recommended to follow the same
# name convention used in the main docker-compose.yml file.
container_name: ddev-${DDEV_SITENAME}-backstop
build:
context: './backstopBuild'
args:
BASE_IMAGE: backstopjs/backstopjs:6.3.3
username: $USER
uid: $DDEV_UID
gid: $DDEV_GID
image: backstopjs/backstopjs:6.3.3-${DDEV_SITENAME}-built
user: '$DDEV_UID:$DDEV_GID'
# Add init to reap Chrome processes, as noted at
# https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#running-puppeteer-in-docker
init: true
entrypoint: [ /entrypoint.sh ]
volumes:
- ../tests/backstop:/src
- .:/mnt/ddev_config:ro
shm_size: 1gb
environment:
DDEV_HOSTNAME: $DDEV_HOSTNAME
# These labels ensure this service is discoverable by ddev.
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: ${DDEV_APPROOT}
networks:
ddev_default: null
default: null