When trying to run MySQL on Docker (on my Synology server), I have specified the stack.yml location like this:
Its contents are:
I am able to start the Docker, but after a short time it stops. The logs show:
Am I referencing the file incorrectly, are the contents of the file incorrect, or am I doing something else wrong?
I am using the official MySQL Docker image I'm using is Docker Hub version 5.7.32
Its contents are:
# Use root/example as user/password credentials
version: '3.1'
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: myPass123
adminer:
image: adminer
restart: always
ports:
- 8081:8080
I am able to start the Docker, but after a short time it stops. The logs show:
You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
Am I referencing the file incorrectly, are the contents of the file incorrect, or am I doing something else wrong?
I am using the official MySQL Docker image I'm using is Docker Hub version 5.7.32