|
|
@@ -98,6 +98,8 @@ services:
|
|
|
|
|
|
db:
|
|
|
image: mysql
|
|
|
+ # NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
|
|
|
+ # (this is just an example, not intended to be a production configuration)
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
|
restart: always
|
|
|
environment:
|
|
|
@@ -110,7 +112,7 @@ services:
|
|
|
- 8080:8080
|
|
|
```
|
|
|
|
|
|
-[](http://play-with-docker.com?stack=https://raw.githubusercontent.com/docker-library/docs/b664a62bb7be3e0cbc2304e306ea42f33244fad1/mysql/stack.yml)
|
|
|
+[](http://play-with-docker.com?stack=https://raw.githubusercontent.com/docker-library/docs/06990e05c934d425c74addcc5ea462f53de6c8cd/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).
|
|
|
|