-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 971 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
version: "3.9"
services:
#-----------API服務----------------- #
api:
image: api
build: ./api
ports:
- 2769:5000
environment:
- ENVIRONMENT=production
depends_on:
- mongo
#-----------資料庫服務 (MongoDB)----------------- #
mongo:
image: mongo
restart: always
ports:
- 1769:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- mongodb-data:/data/db
#------------MongoDB網頁版管理系統--------------------- #
mongo-express:
image: mongo-express
restart: always
ports:
- 5469:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
depends_on:
- mongo
volumes:
mongodb-data: