version: '3.1' services: db: image: mysql:8 command: --default-authentication-plugin=mysql_native_password restart: always environment: MYSQL_USER: myuser MYSQL_PASSWORD: example MYSQL_DATABASE: mydb MYSQL_ROOT_PASSWORD: example ports: - 3306:3306 adminer: image: adminer restart: always ports: - 8080:8080