forked from mmunz/ddev-backstopjs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.backstopjs.yaml
35 lines (35 loc) · 1.12 KB
/
docker-compose.backstopjs.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:
backstopjs:
container_name: ddev-${DDEV_SITENAME}-backstopjs
build:
context: './backstopjsBuild'
args:
BASE_IMAGE: backstopjs/backstopjs:${BACKSTOPJS_VERSION:-6.3.3}
username: $USER
uid: $DDEV_UID
gid: $DDEV_GID
image: backstopjs/backstopjs:${BACKSTOPJS_VERSION:-6.3.3}-${DDEV_SITENAME}-built
user: '$DDEV_UID:$DDEV_GID'
restart: "no"
# 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
shm_size: 1gb
environment:
DDEV_HOSTNAME: $DDEV_HOSTNAME
NODE_EXTRA_CA_CERTS: /mnt/ddev-global-cache/mkcert/rootCA.pem
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: ${DDEV_APPROOT}
entrypoint: [ /entrypoint.sh ]
volumes:
- ../tests/backstopjs:/src/tests
- .:/mnt/ddev_config:ro
- ddev-global-cache:/mnt/ddev-global-cache
networks: [default, ddev_default]
external_links:
- ddev-router:${DDEV_SITENAME}.${DDEV_TLD}
web:
links:
- backstopjs