-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.e2e.yml
51 lines (51 loc) · 1.26 KB
/
docker-compose.e2e.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
version: '3.9'
services:
instant-mock-e2e-record:
build:
context: .
dockerfile: Dockerfile
container_name: instant-mock-e2e-record
environment:
PORT: "${RECORD_PORT}"
PLAY_PORT: "${PLAY_PORT}"
RECORD_PORT: "${RECORD_PORT}"
NODE_ENV: "e2e-record"
APOLLO_API_KEY: "${APOLLO_API_KEY}"
HOST: 0.0.0.0
ports:
- "${RECORD_PORT}:${RECORD_PORT}"
networks:
- instant-mock-network
instant-mock-e2e-play:
build:
context: .
dockerfile: Dockerfile
container_name: instant-mock-e2e-play
environment:
PORT: "${PLAY_PORT}"
PLAY_PORT: "${PLAY_PORT}"
NODE_ENV: "e2e-play"
APOLLO_API_KEY: "${APOLLO_API_KEY}"
USE_LOCAL_SCHEMA: "true"
ports:
- "${PLAY_PORT}:${PLAY_PORT}"
volumes:
- "./test/e2e/fixtures/${FIXTURE_TIMESTAMP}:/app/backend/data/"
networks:
- instant-mock-network
instant-mock-e2e-test:
build:
context: .
dockerfile: Dockerfile
container_name: instant-mock-e2e-test
environment:
PORT: "${TEST_PORT}"
PLAY_PORT: "${PLAY_PORT}"
NODE_ENV: "e2e-test"
ports:
- "${TEST_PORT}:${TEST_PORT}"
networks:
- instant-mock-network
networks:
instant-mock-network:
driver: bridge