-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (43 loc) · 935 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (43 loc) · 935 Bytes
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
version: '3'
services:
test:
build:
context: .
target: dev
environment:
- CI=true
- REACT_APP_BACKEND_URL=https://api-stage.santiment.net
- NODE_ENV=production
command: sh -c "npm run test"
prod:
build:
context: .
target: prod
environment:
- CI=false
- REACT_APP_BACKEND_URL=https://api-stage.santiment.net
- NODE_ENV=production
expose:
- 8000
ports:
- 8000:8000
command: npx serve -s build -l 8000
frontend:
build:
context: .
target: dev
environment:
- CI=false
- NODE_ENV=development
- REACT_APP_BACKEND_URL=https://api-stage.santiment.net
- HTTPS=true
- HOST=local.santiment.net
hostname: local.santiment.net
expose:
- 8000
ports:
- 8000:3000
volumes:
- ./:/opt/san/app
- '/opt/san/app/node_modules'
command: sh -c "npm start"