-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
49 lines (45 loc) · 1.01 KB
/
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
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- db
volumes:
- ./:/go/src/app
tty: true
environment:
- MYSQL_HOST=db
db:
image: mysql:5.7
container_name: db
platform: linux/amd64
ports:
- "3306:3306"
volumes:
- mysql_volume:/var/lib/mysql
# - ./db/schema.sql:/docker-entrypoint-initdb.d/0-schema.sql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=g_gayaon
- MYSQL_USER=admin
- MYSQL_PASSWORD=password
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
swagger-ui:
image: swaggerapi/swagger-ui
container_name: "swagger-ui"
ports:
- "8081:8080"
volumes:
- ./openapi.yml:/openapi.yml
environment:
SWAGGER_JSON: /openapi.yml
swagger-editor:
image: swaggerapi/swagger-editor
container_name: "swagger-editor"
ports:
- "8082:8080"
volumes:
mysql_volume: