-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.test.yaml
58 lines (53 loc) · 1.33 KB
/
docker-compose.test.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '3.8'
services:
manager:
image: knplabs/server-side-renderer:manager-test
build:
context: .
target: prod
depends_on:
- redis
environment:
- MANAGER_ENABLED=1
- WORKER_ENABLED=0
- QUEUE_REDIS_DSN=redis://redis:6379
worker:
image: knplabs/server-side-renderer:worker-test
build:
context: .
target: prod
depends_on:
- redis
environment:
- MANAGER_ENABLED=0
- WORKER_ENABLED=1
- QUEUE_REDIS_DSN=redis://redis:6379
- WORKER_RENDERER_REDIRECTIONS=http://external-nginx|http://nginx
volumes:
- ./fixtures/scripts/postRender.js:/app/scripts/postRender.js:ro
redis:
image: redis:6.2.2-buster
nginx:
image: nginx:1.20.0
volumes:
- ./fixtures/nginx/html:/usr/share/nginx/html:ro
- ./fixtures/nginx/templates:/etc/nginx/templates:ro
test:
image: knplabs/server-side-renderer:test-runner-test
build:
context: .
target: dev
depends_on:
- manager
- worker
- nginx
command: yarn test
volumes:
- ./src:/app/src:ro
- ./package.json:/app/package.json:ro
- ./yarn.lock:/app/yarn.lock:ro
- ./.babelrc:/app/.babelrc:ro
- ./jest.config.js:/app/jest.config.js:ro
- ./.eslintrc.json:/app/.eslintrc.json:ro
profiles:
- test