forked from snowlyg/iris-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 1.01 KB
/
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
version: '2'
services:
mysql:
image: mysql:8.0.18
container_name: mysql
ports:
- 3306:3306
volumes:
- ./mysql/mysql.cnf:/etc/mysql/conf.d/mysql.cnf:ro
- ./mysql/init:/docker-entrypoint-initdb.d/
restart: always
networks:
irisadminapi:
aliases:
- alias1
environment:
MYSQL_DATABASE: goirisadminapi
MYSQL_USER: root
MYSQL_ROOT_PASSWORD: 123456
TZ: "Asia/Shanghai"
irisadminapi:
build:
context: backend
dockerfile: Dockerfile
container_name: irisadminapi
depends_on:
- mysql
volumes:
- ./backend/config/application.yml:/go/src/github.com/snowlyg/IrisAdminApi/backend/config/application.yml:ro
- ./logs/:/go/src/github.com/snowlyg/IrisAdminApi/backend/logs/:ro
- ./resources/app:/go/src/github.com/snowlyg/IrisAdminApi/backend/resources/app/:ro
ports:
- 8085:80
restart: always
networks:
irisadminapi:
aliases:
- alias1
networks:
irisadminapi: