-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (35 loc) · 933 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
version: '3'
services:
grpc_server:
build: ./docker/grpc_server
env_file:
- ./docker/grpc_server/.env
depends_on:
- mysql
volumes:
- ./pkg:/go/src/github.com/viktorminko/microservice-task/pkg
- ./cmd:/go/src/github.com/viktorminko/microservice-task/cmd
- ./docker/grpc_server/start.sh:/start.sh
entrypoint: /start.sh
mysql:
image: mysql/mysql-server:5.7
expose:
- 3306
env_file:
- ./docker/mysql/.env
volumes:
- ./docker/mysql/entrypoint:/docker-entrypoint-initdb.d
parser:
build: ./docker/parser
env_file:
- ./docker/parser/.env
environment:
- DATA_FILE=/data.csv
depends_on:
- grpc_server
volumes:
- ./cmd:/go/src/github.com/viktorminko/microservice-task/cmd
- ./pkg:/go/src/github.com/viktorminko/microservice-task/pkg
- ./data.csv:/data.csv
- ./docker/parser/start.sh:/start.sh
entrypoint: /start.sh