-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (43 loc) · 925 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
version: "3.4"
services:
api:
build:
context: .
dockerfile: Dockerfile.api
args:
BINARY: ${BINARY}
GOVERSION: ${GOVERSION}
PACKAGE: ${PACKAGE}
VERSION: ${VERSION}
environment:
API_PORT: 8080
DB_HOST: db
DB_NAME: ${BINARY}
DB_PASSWORD: ${DB_PASSWORD}
DB_PORT: 3306
DB_USER: ${BINARY}
depends_on:
- db
links:
- db
ports:
- ${API_PORT}:8080
db:
build:
context: .
dockerfile: Dockerfile.db
environment:
MYSQL_DATABASE: ${BINARY}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_USER: ${BINARY}
ports:
- ${DB_PORT}:3306
doc:
build:
context: .
dockerfile: Dockerfile.doc
args:
VERSION: ${VERSION}
ports:
- ${DOC_PORT}:80