-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
128 lines (118 loc) · 2.38 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
122
123
124
125
126
127
128
version: "3.9"
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: melipassword
MYSQL_DATABASE: meli
expose:
- 3306
redis:
image: 'redis'
expose:
- 6379
bullboard:
depends_on:
- redis
container_name: bullboard
image: deadly0/bull-board
ports:
- 3030:3000
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- BULL_VERSION=BULL
gateway:
depends_on:
- ms-articles
build:
dockerfile: ../micro.Dockerfile
context: ./gateway
args:
- SUBFOLDER=gateway
working_dir: /project/gateway
environment:
- NODE_ENV=development
expose:
- "3000"
ports:
- 3000:3000
secrets:
- source: user_ssh_key
target: /root/.ssh/id_rsa
mode: 0600
ms-articles:
depends_on:
- fetcher
- db
- redis
build:
dockerfile: ../micro.Dockerfile
context: ./ms-articles
args:
- SUBFOLDER=ms-articles
working_dir: /project/ms-articles
environment:
- NODE_ENV=development
expose:
- "8881"
ports:
- 8881:8881
secrets:
- source: user_ssh_key
target: /root/.ssh/id_rsa
mode: 0600
fetcher:
depends_on:
- redis
build:
dockerfile: ../micro.Dockerfile
context: ./fetcher
args:
- SUBFOLDER=fetcher
working_dir: /project/fetcher
environment:
- NODE_ENV=development
expose:
- "8891"
ports:
- 8891:8891
secrets:
- source: user_ssh_key
target: /root/.ssh/id_rsa
mode: 0600
phpmyadmin:
image: 'phpmyadmin/phpmyadmin'
depends_on:
- db
ports:
- 3080:80
environment:
- PMA_HOST=db
- PMA_PORT=3306
- MYSQL_ROOT_PASSWORD=melipassword
frontend:
depends_on:
- ms-articles
build:
dockerfile: ../micro.Dockerfile
context: ./frontend
args:
- SUBFOLDER=frontend
working_dir: /project/frontend
environment:
- NODE_ENV=development
expose:
- "3000"
ports:
- 3040:3000
secrets:
- source: user_ssh_key
target: /root/.ssh/id_rsa
mode: 0600
command: npm run start
secrets:
user_ssh_key:
file: c:\users\andre\.ssh\id_rsa