docker-compose.yml 358 B

123456789101112131415
  1. version: "3"
  2. services:
  3. db:
  4. image: mariadb:10.5
  5. ports:
  6. - ${DB_PORT}:3306
  7. volumes:
  8. - ./mysql:/var/lib/mysql
  9. environment:
  10. - MARIADB_DATABASE=${DB_NAME}
  11. - MARIADB_USER=${DB_USER}
  12. - MARIADB_PASSWORD=${DB_PASSWORD}
  13. - MARIADB_ROOT_PASSWORD=${DB_PASSWORD}