-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (37 loc) · 919 Bytes
/
docker-compose.yaml
File metadata and controls
40 lines (37 loc) · 919 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
version: '3.5'
services:
dev:
container_name: react-app-dev
build:
context: .
dockerfile: local.Dockerfile
volumes:
- './config/client-side/local.json:/usr/src/app/public/config.json'
- './react-app:/usr/src/app'
- '/usr/src/app/node_modules'
ports:
- '3000:3000'
environment:
- NODE_ENV=development
test:
container_name: react-app-test
build:
context: .
dockerfile: local.Dockerfile
volumes:
- './config/client-side/local.json:/usr/src/app/public/config.json'
- './react-app:/usr/src/app'
- '/usr/src/app/node_modules'
environment:
- CI=true
command: npm test
prod:
container_name: react-app-prod
build:
context: .
dockerfile: production.Dockerfile
ports:
- '3001:80'
environment:
- NODE_ENV=production
- CLIENT_ENVIRONMENT=production