-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 886 Bytes
/
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
version: "3"
services:
api:
container_name: api_server
build: ./api
ports:
- 8080:8080
depends_on:
- backend
- redis
backend:
container_name: backend_server
build: ./backend
ports:
- 50051:50051
depends_on:
- db
restart: unless-stopped
db:
container_name: mysql
image: mysql:5.7
ports:
- 3306:3306
volumes:
- ./mysql/init:/docker-entrypoint-initdb.d
- ./mysql/etc/mysql/conf.d/custom.cnf:/etc/mysql/conf.d/custom.cnf
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
redis:
container_name: redis
image: redis:latest
ports:
- 6379:6379
grpc-gateway:
container_name: grpc-gateway
build: ./grpc-gateway
ports:
- 8081:8081
environment:
ENDPOINT: backend:50051
depends_on:
- backend