I am using Docker Engine Version: 18.09.0.
The sever is built from XXX_server(ubuntu18.04, python3.7) and mysql:8.0
I installed the docker-compose file on several different computers and everything works fine.
But on Ubuntu version 16.04.2 LTS (Xenial Xerus), the database is not created.
Any idea why?
The docker-compose file:
version: “3”
services:
XXX_server:
image: XXX_server
command: python3 XXX-srv.py
…
db:
mysql:8.0
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: XXXX
MYSQL_DATABASE: database
volumes:
my-datavolume:/var/lib/mysql
volumes:
my-datavolume: