-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
43 lines (43 loc) · 886 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:
api:
build:
context: ./api
dockerfile: dev.dockerfile
ports:
- '3000:3000'
environment:
- MDB_NAME=platzi-store
- MDB_PORT=27017
- MDB_HOST=mongo
- CDB_NAME=platzi_store
- CDB_PORT=8091
- CDB_HOST=couchbase
- CDB_USER=admin
- CDB_PWD=admin123
- NODE_ENV=dev
depends_on:
- mongo
- couchbase
volumes:
- ./api:/app
- /app/node_modules
mongo:
image: mongo
ports:
- '27017-27019:27017-27019'
volumes:
- ./mongo/local_data:/data/db
couchbase:
image: couchbase:enterprise-6.0.2
ports:
- '8091-8096:8091-8096'
- '11210-11211:11210-11211'
volumes:
- ./couchbase/local_data:/opt/couchbase/var
webapp:
build:
context: ./webapp
dockerfile: Dockerfile
ports:
- '8080:80'