-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
47 lines (46 loc) · 1.14 KB
/
docker-compose.yaml
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
version: '3.8'
services:
redis:
extends:
file: ./docker/redis/docker-compose.yaml
service: redis
container_name: redis
mongodb:
extends:
file: ./docker/mongodb/docker-compose.yaml
service: mongodb
container_name: mongodb
environment:
MONGO_REPLICA_HOST: mongodb # use the service name as the host because it's in the same Docker network
backend:
container_name: microservices
restart: unless-stopped
environment:
NODE_ENV: development
MAIN_DATABASE_URI: mongodb://root:root@mongodb:27018/localdb?authSource=admin
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: root
PRISMA_PUSH: ${PRISMA_PUSH:-true}
depends_on:
- redis
- mongodb
develop:
watch:
- action: sync
path: ./apps
target: /app/apps
ignore:
- node_modules/
- action: sync
path: ./libs
target: /app/libs
ignore:
- node_modules/
- action: rebuild
path: package.json
build:
context: .
dockerfile: Dockerfile
ports:
- '3000:3000'