-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (46 loc) · 1.09 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
49
50
version: '3.1'
services:
mongo:
image: mongo:6.0
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: fashiontest
MONGO_INITDB_ROOT_PASSWORD: Omio0raiOmio0rai
healthcheck:
test:
[
"CMD",
"mongosh",
"mongodb://fashiontest:Omio0raiOmio0rai@127.0.0.1/admin?authSource=admin",
"--eval=exit"
]
interval: 5s
timeout: 5s
retries: 10
ports:
- 27017:27017
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_URL: mongodb://fashiontest:Omio0raiOmio0rai@mongo:27017/
depends_on:
mongo:
condition: service_healthy
app:
build:
context: .
ports:
- 80:3000
depends_on:
mongo:
condition: service_healthy
environment:
- DATABASE_URL=mongodb://fashiontest:Omio0raiOmio0rai@mongo/fcdb?authSource=admin # DO NOT CHANGE
- APP_PORT=3000 # DO NOT CHANGE
- RANDOM_STRING_LENGTH=14
- CACHE_MAX_COUNT=5
- KEY_TTL=3600
- LOG_LEVEL=info