-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (42 loc) · 891 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
version: '2'
services:
nodeapi:
image: appapi
build: ./docker/node
environment:
NODE_ENV: production
ports:
- 3000:3000
command: ["/opt/dev-tools/start.sh"]
volumes:
- ./www/node:/usr/src/app:z
networks:
red-node:
aliases:
- apinode
ipv4_address: 172.28.0.30
reactapi:
image: appapi
build: ./docker/react
environment:
REACT_ENV: production
ports:
- 8080:8080
command: ["/opt/dev-tools/start.sh"]
volumes:
- ./www/react:/usr/src/app:z
networks:
red-node:
aliases:
- apireact
ipv4_address: 172.28.0.31
# In this section we defined the network interface
networks:
red-node:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "false"
ipam:
driver: default
config:
- subnet: 172.28.0.0/24