2023-08-19 16:56:22 +01:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
database:
|
|
|
|
image: mysql/mysql-server
|
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
|
|
restart: always
|
|
|
|
environment:
|
2024-04-28 17:34:42 +01:00
|
|
|
- MYSQL_DATABASE=$DB_NAME
|
|
|
|
- MYSQL_USER=$DB_AUTH_USER
|
|
|
|
- MYSQL_PASSWORD=$DB_AUTH_PASS
|
|
|
|
- MYSQL_ROOT_PASSWORD=$DB_AUTH_PASS
|
|
|
|
- MYSQL_ROOT_HOST=$DB_ROOT_HOST
|
2023-08-19 16:56:22 +01:00
|
|
|
ports:
|
2024-04-28 17:34:42 +01:00
|
|
|
- "$DB_PORT:3306"
|
2023-08-19 16:56:22 +01:00
|
|
|
volumes:
|
2024-04-28 17:34:42 +01:00
|
|
|
- $DB_DATA_LOCATION:/var/lib/mysql
|