docker-compose.yml 320 B

1234567891011121314151617
  1. version: "3"
  2. services:
  3. db:
  4. image: mariadb:11.5
  5. ports:
  6. - ${DB_PORT}:3306
  7. volumes:
  8. - mariadb:/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}
  14. volumes:
  15. mariadb: