-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (65 loc) · 1.8 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "3"
services:
graphqlapi:
image: nestmicroservices/graphqlapi:${TAG:-latest}
build:
context: ./graphqlapi
dockerfile: dev.Dockerfile
command: start:dev
volumes:
- ./graphqlapi/dist:/server/dist:delegated
- ./graphqlapi/src:/server/src:delegated
- ./graphqlapi/tsconfig.json:/server/tsconfig.json:delegated
- ./graphqlapi/tsconfig.build.json:/server/tsconfig.build.json:delegated
environment:
- GRAPHQL_ENV=production
- REDIS_HOST=redis
ports:
- '4200:4200'
depends_on:
- redis
- rabbitmq
user-service:
image: nestmicroservices/user-service:${TAG:-latest}
build:
context: ./user-service
dockerfile: dev.Dockerfile
command: start:dev
volumes:
- ./user-service/dist:/server/dist:delegated
- ./user-service/src:/server/src:delegated
- ./user-service/tsconfig.json:/server/tsconfig.json:delegated
- ./user-service/tsconfig.build.json:/server/tsconfig.build.json:delegated
environment:
- REDIS_HOST=redis
ports:
- "4201:3000"
depends_on:
- redis
- rabbitmq
rabbitmq:
image: "rabbitmq:3-management"
hostname: "rabbitmq"
environment:
RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG"
RABBITMQ_DEFAULT_USER: "rabbitmq"
RABBITMQ_DEFAULT_PASS: "rabbitmq"
RABBITMQ_DEFAULT_VHOST: "/"
ports:
- "15672:15672"
- "5672:5672"
redis:
image: "bitnami/redis:latest"
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
labels:
kompose.service.type: nodeport
ports:
- "6379:6379"
volumes:
- "redis_data:/bitnami/redis"
volumes:
redis_data:
driver: local