-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.backstop.yaml
More file actions
32 lines (31 loc) · 1.08 KB
/
docker-compose.backstop.yaml
File metadata and controls
32 lines (31 loc) · 1.08 KB
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
#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.25
username: $DDEV_USER
uid: $DDEV_UID
gid: $DDEV_GID
image: backstopjs/backstopjs:6.3.25-${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
# These labels ensure this service is discoverable by ddev.
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: ${DDEV_APPROOT}