-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
90 lines (83 loc) · 1.85 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
version: '3.7'
services:
generic:
build:
context: .docker
dockerfile: Dockerfile.dev
volumes:
- ./proto:/app
working_dir: /app
node_1:
build:
context: .docker
dockerfile: Dockerfile.dev
volumes:
- ./microservices/micr1:/app
- ./proto:/proto
command: nest start --watch
working_dir: /app
node_2:
build:
context: .docker
dockerfile: Dockerfile.dev
volumes:
- ./microservices/micr2:/app
- ./proto:/proto
command: nest start --watch
working_dir: /app
node_prisma:
build:
context: .docker
dockerfile: Dockerfile.dev
volumes:
- ./microservices/micr_prisma:/app
- ./proto:/proto
command: nest start --watch
working_dir: /app
prisma:
image: prismagraphql/prisma:1.14
restart: always
ports:
- 4466:4466
environment:
PRISMA_CONFIG: |
port: 4466
# uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
# managementApiSecret: my-secret
databases:
default:
connector: mysql
host: mysql
port: 3306
user: root
password: prisma
migrations: true
depends_on:
- mysql
mysql:
image: mysql:5.7
volumes:
- ./data/mysql:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: prisma
# MYSQL_DATABASE: mysql
# MYSQL_USER: mysql
# MYSQL_PASSWORD: mysql
ports:
- 3307:3306
node_client:
build:
context: .docker
dockerfile: Dockerfile.dev
volumes:
- ./client:/app
- ./proto:/proto
command: nest start --watch
working_dir: /app
ports:
- 3000:3000
depends_on:
- node_1
- node_2
- node_prisma