Docker Compose v2 doesn't need that anymore, see https://docs.docker.com/compose/compose-file/04-version-and-name/
11 lines
238 B
YAML
11 lines
238 B
YAML
services:
|
|
mariadb:
|
|
image: 'mariadb:10.8'
|
|
environment:
|
|
- 'MARIADB_DATABASE=test'
|
|
- 'MARIADB_USER=mariadb'
|
|
- 'MARIADB_PASSWORD=password'
|
|
- 'MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true'
|
|
ports:
|
|
- '3306'
|