-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1003 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
version: '3.9'
volumes:
db: {}
services:
mysql:
image: mysql:5.7
volumes:
- db:/var/lib/mysql
- "./build/docker/mysql/conf.d:/etc/mysql/conf.d"
- "./build/docker/mysql/init.d:/docker-entrypoint-initdb.d"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: go-goa
MYSQL_USER: guestuser
MYSQL_PASSWORD: secret123
ports:
- "3306:3306"
api-server:
build:
context: .
dockerfile: Dockerfile
image: 'goa-api:v1.0'
links:
- mysql:mysql-server
depends_on:
- mysql
environment:
CGO_ENABLED: 0
GOOS: linux
ports:
- "8090:8090"
restart: always
command: -host 0.0.0.0 -port 8090 -conf /workspace/configs/docker.toml
file-server:
build:
context: .
dockerfile: Dockerfile.file
image: 'goa-file:v1.0'
environment:
CGO_ENABLED: 0
GOOS: linux
ports:
- "8080:8080"
restart: always
command: -host 0.0.0.0 -port 8080