version: '3' networks: db: driver: bridge services: mariadb: image: mariadb:10.6 restart: always env_file: .docker.env environment: MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS} MYSQL_USER: ${DB_USER} MYSQL_PASSWORD: ${DB_PASS} ports: - "3306:3306" volumes: - ./mariadb:/var/lib/mysql networks: db: phpmyadmin: image: phpmyadmin restart: always ports: - "8080:80" environment: - PMA_HOST=mariadb - PMA_PORT=3306 networks: db: