-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (42 loc) · 899 Bytes
/
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.7'
services:
dev:
container_name: react-starter_dev
env_file:
- .env.local
- .env.developement.local
build:
context: .
dockerfile: Dockerfile
target: development
volumes:
- ./:/apps/react-starter
- /apps/react-starter/node_modules
ports:
- ${PORT}:${PORT}
build:
container_name: react-starter_build
env_file:
- .env.local
- .env.production.local
build:
context: .
dockerfile: Dockerfile
target: build
volumes:
- .:/apps/react-starter
- /apps/react-starter/node_modules
command: npm run build
prod:
container_name: react-starter_prod
env_file:
- .env.local
- .env.production.local
build:
context: .
dockerfile: Dockerfile
target: production
ports:
- ${PORT_NGINX}:80
volumes:
reload-volume: