-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (35 loc) · 922 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
services:
redis:
image: redis
restart: unless-stopped
ports:
- 6379:6379
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASS:-admin}
mongo:
image: mongo
ports:
- 27017:27017
restart: unless-stopped
volumes:
- ./.data/mongo:/data/db
command: mongod --quiet --logpath /dev/null
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo mongo:27017/test --quiet
interval: 5s
timeout: 5s
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER:-admin}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASS:-admin}
api:
build: ./
# image: ghcr.io/trongtindev/wutheringwaves-app-api:latest
restart: unless-stopped
volumes:
- ./tmp:/home/tmp
ports:
- '${PORT:-8081}:${PORT:-8081}'
depends_on:
- redis
- mongo