-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 802 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (41 loc) · 802 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
version: '3.7'
services:
frontend:
container_name: frontend
build: ./frontend
networks:
custom_net:
ipv4_address: 10.5.0.5
volumes:
- './:/app'
- '/app/node_modules'
ports:
- 3000:3000
expose:
- "3000"
stdin_open: true
environment:
- CHOKIDAR_USEPOLLING=true
command: npm start
backend:
container_name: backend
build: ./backend
networks:
custom_net:
ipv4_address: 10.5.0.6
volumes:
- './:/app'
- '/app/node_modules'
ports:
- 8080:8080
stdin_open: true
environment:
- CHOKIDAR_USEPOLLING=true
command: npm start
# Exposes React App on local network
networks:
custom_net:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16