Skip to content

Commit 5bfbcc6

Browse files
committed
just use image
1 parent 3d787cf commit 5bfbcc6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@ services:
2020
app_net:
2121
ipv4_address: 172.16.1.40
2222

23+
mysql:
24+
hostname: docker-mysql
25+
image: mysql:5.7
26+
ports:
27+
- 3306:3306
28+
command: --default-authentication-plugin=mysql_native_password
29+
environment:
30+
MYSQL_ROOT_PASSWORD: password
31+
MYSQL_USER: developer
32+
MYSQL_PASSWORD: password
33+
restart: on-failure
34+
networks:
35+
- app_net
36+
2337
nginx:
2438
hostname: docker-nginx
2539
build:

0 commit comments

Comments
 (0)