-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (47 loc) · 1.07 KB
/
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
48
version: "3"
services:
client:
container_name: express-react-mongo-dockerized_client
build:
context: ./client
dockerfile: Dockerfile
image: piotrmackiewicz/express-react-mongo-dockerized_client
ports:
- ${CLIENT_PORT}:3000
volumes:
- ./client:/client
- /client/node_modules
environment:
- "API_URL=http://localhost:5000/api"
depends_on:
- server
networks:
- network
server:
container_name: express-react-mongo-dockerized_server
build:
context: ./server
dockerfile: Dockerfile
image: piotrmackiewicz/express-react-mongo-dockerized_server
ports:
- ${SERVER_PORT}:5000
volumes:
- ./server:/server
- /server/node_modules
depends_on:
- database
networks:
- network
database:
image: mongo
container_name: express-react-mongo-dockerized_database
volumes:
- ./data-node:/data/db
ports:
- ${MONGODB_PORT}:27017
command: mongod --noauth
networks:
- network
networks:
network:
driver: bridge