|
|
@@ -107,6 +107,7 @@ services:
|
|
|
|
|
|
db:
|
|
|
image: mysql
|
|
|
+ command: --default-authentication-plugin=mysql_native_password
|
|
|
restart: always
|
|
|
environment:
|
|
|
MYSQL_ROOT_PASSWORD: example
|
|
|
@@ -118,7 +119,7 @@ services:
|
|
|
- 8080:8080
|
|
|
```
|
|
|
|
|
|
-[](http://play-with-docker.com?stack=https://raw.githubusercontent.com/docker-library/docs/9efeec18b6b2ed232cf0fbd3914b6211e16e242c/mysql/stack.yml)
|
|
|
+[](http://play-with-docker.com?stack=https://raw.githubusercontent.com/docker-library/docs/b664a62bb7be3e0cbc2304e306ea42f33244fad1/mysql/stack.yml)
|
|
|
|
|
|
Run `docker stack deploy -c stack.yml mysql` (or `docker-compose -f stack.yml up`), wait for it to initialize completely, and visit `http://swarm-ip:8080`, `http://localhost:8080`, or `http://host-ip:8080` (as appropriate).
|
|
|
|