-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (32 loc) · 858 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (32 loc) · 858 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
version: '3.9'
services:
# MongoDB service
mongo_db:
container_name: letsblog-db-c
image: mongo:latest
restart: always
ports:
- 2717:27017
volumes:
- mongo_db:/data/db
# Node API servcie
api:
build: .
ports:
- 3000:3000
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
container_name: letsblog-api-c
environment:
PORT: ${PORT}
MONGODB_URL: mongodb://mongo_db:27017/letsBlog
accessTokenKey: ${accessTokenKey}
refreshTokenKey: ${refreshTokenKey}
CLOUD_NAME: ${CLOUD_NAME}
CLOUDINARY_API_KEY: ${CLOUDINARY_API_KEY}
API_SECRET: ${API_SECRET}
depends_on:
- mongo_db
volumes:
mongo_db: {}