-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 841 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 841 Bytes
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
version: "3"
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "50051:50051"
env_file:
- "env/local.env"
volumes:
- ".:/go/src/app"
links:
- db
- db-test
command: ["go", "run", "server.go"]
gateway:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
links:
- app
volumes:
- ".:/go/src/app"
command: ["go", "run", "gateway/gateway.go", "-endpoint", "app:50051"]
db:
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: app
ports:
- "3306:3306"
db-test:
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: app_test
ports:
- "3340:3306"