-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (43 loc) · 982 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: "3.3"
services:
client:
image: mhart/alpine-node:latest
restart: always
ports:
- "3000:3000"
working_dir: /client/src/app
volumes:
- ./client:/client/src/app
entrypoint: ["npm", "start"]
links:
- api
networks:
- webappnetwork
build: ./client
api:
image: webapp-api
restart: always
ports:
- "9000:9000"
volumes:
- ./api:/api
- /api/node_modules
depends_on:
- mongodb
networks:
- webappnetwork
build: ./api
environment:
WAIT_HOSTS: mongodb:27017
mongodb:
image: mongo
restart: always
container_name: mongodb
ports:
- 27017:27017
networks:
- webappnetwork
command: mongod --port 27017
networks:
webappnetwork:
driver: bridge