version: '3.1' services: db: image: mariadb:10.5.8 restart: always environment: - MYSQL_ROOT_PASSWORD=root00 - MYSQL_DATABASE=${DB_NAME} - MYSQL_USER=${DB_USER} - MYSQL_PASSWORD=${DB_PASS} volumes: - ./.db-data:/var/lib/mysql - ./initdb:/docker-entrypoint-initdb.d ports: - "${DB_PORT}:3306" adminer: image: adminer restart: always ports: - "8080:8080"