-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 978 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
49
50
version: '3.3'
services:
go:
# tty: true
build:
context: ./go/
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./go:/app
networks:
- network
writer:
image: mysql:5.7
build:
context: ./writer/
dockerfile: Dockerfile
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: sample
MYSQL_PASSWORD: password
ports:
- "33007:3306"
volumes:
- ./writer/conf:/etc/mysql/conf.d
- ./writer/initdb:/docker-entrypoint-initdb.d
networks:
- network
reader:
image: mysql:5.7
build:
context: ./reader/
dockerfile: Dockerfile
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: sample
MYSQL_PASSWORD: password
ports:
- "33008:3306"
volumes:
- ./reader/conf:/etc/mysql/conf.d
- ./reader/initdb:/docker-entrypoint-initdb.d
networks:
- network
networks:
network: