forked from Badmuts/aula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
121 lines (110 loc) 路 2.61 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: '3.4'
services:
edge:
image: traefik:v1.7.20
ports:
- "3000:80"
volumes:
- ./edge.toml:/etc/traefik/traefik.toml
tunnel:
image: wernight/ngrok
command: ngrok http edge:80
web:
build:
context: .
dockerfile: Dockerfile
args:
SERVICE: web
image: ${REPO:-badmuts}/aula-web:${TAG:-latest}
environment:
- NODE_ENV=dev
command: npm run dev
auth-service:
build:
context: .
dockerfile: Dockerfile
args:
SERVICE: auth
image: ${REPO:-badmuts}/aula-auth:${TAG:-latest}
environment:
- NODE_ENV=${NODE_ENV:-development}
- ACCESS_TOKEN_PUBLIC=${ACCESS_TOKEN_PUBLIC}
- ACCESS_TOKEN_PRIVATE=${ACCESS_TOKEN_PRIVATE}
- REFRESH_TOKEN_PRIVATE=${REFRESH_TOKEN_PRIVATE}
- REFRESH_TOKEN_PUBLIC=${REFRESH_TOKEN_PUBLIC}
- NATS_HOST=nats
depends_on:
- nats
user-service:
build:
context: .
dockerfile: Dockerfile
args:
SERVICE: user
image: ${REPO:-badmuts}/aula-user:${TAG:-latest}
environment:
- NODE_ENV=${NODE_ENV:-development}
- ACCESS_TOKEN_PUBLIC=${ACCESS_TOKEN_PUBLIC}
- DB_HOST=mongo
- DB_DATABASE=user
- DB_USER=
- DB_PASSWORD=
- NATS_HOST=nats
- REDIS_HOST=cache
depends_on:
- mongo
- nats
course-service:
build:
context: .
dockerfile: Dockerfile
args:
SERVICE: course
image: ${REPO:-badmuts}/aula-course:${TAG:-latest}
environment:
- NODE_ENV=${NODE_ENV:-development}
- ACCESS_TOKEN_PUBLIC=${ACCESS_TOKEN_PUBLIC}
- DB_HOST=mongo
- DB_DATABASE=course
- DB_USER=
- DB_PASSWORD=
- NATS_HOST=nats
- REDIS_HOST=cache
depends_on:
- mongo
- nats
search-service:
build:
context: .
dockerfile: Dockerfile
args:
SERVICE: search
image: ${REPO:-badmuts}/aula-search:${TAG:-latest}
environment:
- NODE_ENV=${NODE_ENV:-development}
- ACCESS_TOKEN_PUBLIC=${ACCESS_TOKEN_PUBLIC}
- NATS_HOST=nats
depends_on:
- elastic
- nats
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
websocket-service:
build:
context: .
dockerfile: Dockerfile
args:
SERVICE: websocket
image: ${REPO:-badmuts}/aula-websocket:${TAG:-latest}
environment:
- NODE_ENV=${NODE_ENV:-development}
- ACCESS_TOKEN_PUBLIC=${ACCESS_TOKEN_PUBLIC}
- NATS_HOST=nats
depends_on:
- nats
nats:
image: nats:1.3.0
mongo:
image: mongo:4.1-xenial
cache:
image: redis