-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (54 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
59 lines (54 loc) · 1.22 KB
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
52
53
54
55
56
57
58
59
version: '3.8'
services:
frontend-dev:
container_name: groupify-frontend-dev
build:
context: .
target: development
volumes:
- .:/app
- /app/node_modules
ports:
- '3000:3000'
environment:
- NODE_ENV=development
- REACT_APP_API_URL=${REACT_APP_API_URL:-http://localhost:3001}
- WATCHPACK_POLLING=true
networks:
- groupify-network
stdin_open: true
command: npm start
frontend-prod:
container_name: groupify-frontend-prod
build:
context: .
target: production
ports:
- '80:80'
environment:
- NODE_ENV=production
- REACT_APP_API_URL=${REACT_APP_API_URL:-http://localhost:3001}
networks:
- groupify-network
profiles: ['prod']
depends_on:
- frontend-build
frontend-build:
container_name: groupify-frontend-build
build:
context: .
target: builder
environment:
- NODE_ENV=production
- REACT_APP_API_URL=${REACT_APP_API_URL:-http://localhost:3001}
volumes:
- build_volume:/app/build
networks:
- groupify-network
profiles: ['prod']
command: npm run build
networks:
groupify-network:
driver: bridge
volumes:
build_volume: