forked from linode/manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (45 loc) · 1.39 KB
/
docker-compose.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
---
version: '3'
services:
web:
build:
context: .
dockerfile: ./packages/manager/Dockerfile
target: manager
container_name: web
ports:
- "3000:3000"
volumes:
- ./packages/manager:/home/node/app/packages/manager
- ./package.json:/home/node/app/package.json
- ./node_modules:/home/node/app/node_modules
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000']
interval: 15s
timeout: 10s
retries: 10
e2e:
build:
context: .
dockerfile: ./packages/manager/Dockerfile
target: e2e
depends_on:
web:
condition: service_healthy
environment:
- CYPRESS_BASE_URL=http://web:3000
- CYPRESS_RECORD=${CYPRESS_RECORD}
- CYPRESS_RECORD_KEY=${CYPRESS_RECORD_KEY}
- HOME=/home/node
- MANAGER_OAUTH=${MANAGER_OAUTH_1}
- REACT_APP_API_ROOT=${REACT_APP_API_ROOT}
- REACT_APP_CLIENT_ID=${REACT_APP_CLIENT_ID}
- REACT_APP_LAUNCH_DARKLY_ID=${REACT_APP_LAUNCH_DARKLY_ID}
- REACT_APP_LOGIN_ROOT=${REACT_APP_LOGIN_ROOT}
env_file: ./packages/manager/.env
volumes:
- ./packages/manager:/home/node/app/packages/manager
- ./packages/validation:/home/node/app/packages/validation
- ./packages/api-v4:/home/node/app/packages/api-v4
- ./package.json:/home/node/app/package.json
- ./node_modules:/home/node/app/node_modules