version: '3.1' services: db: image: arm64v8/mariadb restart: always ports: - 3306:3306 environment: - MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD} command: --user=root --log-bin --binlog-format=MIXED --log-basename=1001 --server-id=1001 user: 0:0